Cookies In A Load-balanced Environment
Users in our load-balanced environment get to our home page via web.vzcorp.com where a persistent cookie gets set. bedineta is 1 of the machines in this setup. You can unofficially get to our home page that way too. Question I have is if the user comes in thru bedineta how can I get their machine to recognize the cookie I set when they came thru web.vzcorp.com? They come thru the same block of asp. I've played around with the cookies.Domain and Cookies.Path setting with no luck.
View Replies
ADVERTISEMENT
I am building an web application that will be hosted on load balanced servers
(multiple front and one backen db). The application will have to allow users
to upload files onto the server. For performance reasons, I do not want to
store binary files in the db (cuz there will be frequently retrieved and
stored and many will be within the range of 10 MB - powerpoint slides and pdf
files) so uploaded files will have to stay on the front end web server.
The problem with this approach is that there will have to be some mechanism that
replicates the files automatically among the front end servers. Can someone
shed some light on what the best apporach is to my problem? I am wondering
whether Windows 2000 has such service available to do file replication (if
so, how?)
View Replies
View Related
Does anyone have any suggestions what software would be best used for an ASP development environment with several programmers working on the same project? It would have to have source control and version control etc.
View Replies
View Related
I am about to dive in to the world of ASP. I have done HTML sites before using Dreamweaver MX.My question is: What is the best development application for me to use to create ASP web apps/sites?should I go with ASP or ASP.net?
View Replies
View Related
A week or so ago, I needed to find the HTTP_REFERER environment variable to check and see if a user is coming from a certain website:
If Request.ServerVariables("HTTP_REFERER")_
= "http://localhost/mydir/page1.aspx" then
response.write "Click on a menu choice"
else
response.write "check back later
end if
I have a page nested in an IFRAME (for example framepage1.aspx or ..asp), and I need to check to see if a user is coming to (not coming from ) a certain page where the framepage1.aspx is (the framepage1.aspx could appear in not only page1.aspx, but page2.aspx ,or page3). I'm not sure how to accomplish this given that the
HTTP_REFERER checks on address only incoming.
View Replies
View Related
I have an asp pages which uses ActibeX dll and Exe written in in VB and VC++. I want to debug the components from asp page. When the asp page is run I should be able to get the breakpoint in my VB & VC++ dll and exe.
what could be the setting to do that. I can debug those componnets from another VB/VC++ applications but I want to debug from asp page.
View Replies
View Related
In my Session_OnStart in Global.asa, I am setting some cookies. One
of them, I set as follows:
dim UserID
UserID = Request.ServerVariables("LOGON_USER")
Response.Cookies("User")("ID") = UCASE(UserID)
When I immediately log the cookie value retrieved from
Request.Cookies("User")("ID") into the Windows Event Log, I get the
correct value. However, when I try to retrieve the cookie on the home
page of my application using the same code,
Request.Cookies("User")("ID"), it either cannot find the cookie or
cannot read the value. I am retrieving the cookie before all HTML
headers are written. It is my first statement on the page after
Option Explicit. I have even compared the session IDs. The SessionID
created in the Session_OnStart is the same value as the SessionID on
the home page.
I have read that the Session_OnStart only has access to the
Application, Session and Request objects. It does not explicitly say
that it does not have access to the Response object. Also, I was even
able to use Response.Write's in Global.asa to print out the values
although it looked like it had also stopped the session after I did
so. Cookies are definitely enabled on my machine. I have even tried
setting the session cookie's expiration to be persistent for a few
days to see if it was perhaps expiring before I was able to read it
but this did not work either.
Is there something preventing cookies to be created in Global.asa in
the Session_OnStart sub? Is the Response object not available???
Please let me know if anyone else has had this problem or solution.
View Replies
View Related
can't seem to find how accesss the standard cgi environment variables in vbscipt/asp, remote_addr, server_port, etc they are accessible right? or a similar vbs set?
View Replies
View Related
What is the best way to allow a second developer access to existing html and
asp files in the office from a development point of view. At the moment, I
have been developing locally and then uploading my files to my web host but
I now need to create a usuable office environment which allows a second
developer to work my folder structures and files.
We do not have a big budget.
I am thinking of asking the company to buy a second hard drive loaded with
Office XP professional and use this to server files locally in a staging
environment before pushing the files to the remote web host.
Am I on the right track?
View Replies
View Related
I would like to read a client environment variable... How can i do this ?
I can read server environment variable using
<%=request.servervariables("LOGON_USER")%>
but concerning client environment ?
View Replies
View Related
how to set up ASP development environment in windows XP (or i have to have windows 2000/2003)? Any good tutorial out there? By the way, I already have Visual Studio .net installed in my computer.
I am a PHP developer and want to learn ASP for my new project. How long u think it will take for me to catch up?
View Replies
View Related
My goal is to retrieve my local machine's %USERNAME% environment variable
from ASP page.
When I enter http://RemoteServerName/testusername.asp?id=%USERNAME% directly
into the IE Browser URL box, %USERNAME% is repalced with the local machine
ID. However <a href="http://RemoteServerName/testusername.asp?id=%USERNAME%"> get mahcine id</a> in an html file and use Request.Querystring("id") to retrieve it in testusername.asp page, it returns "%USERNAME%". I guess IE browser is smart enough to replace %USERNAME% with the local environment variable value before sending URL string to the web server when you type directly into the Browser URL box.My question is , is there any way to retrieve local machine's environment variable, %USERNAME% from ASP page?
View Replies
View Related
I have a variable in an INI file (fileLocation) which will point to the location where i can store some temporay files.
This fileLocation variable has a value "%USERPROFILE%Local SettingsTemp" >Now, how do i get the actual expansion of this variable (for ex:i.e : C:Documents and Settings<username>Local SettingsTemp).
How can this be achieved through ASP?
View Replies
View Related
The goal is to retreive the network login in order to validate users. Right now when I try to get Request.ServerVariables("LOGON_USER"), it returns a null value. Currenly in IIS, anonlymous access is checked. Is there any way for me to get the LOGON USER?
View Replies
View Related
Before I was able to use Microsoft Devleopment Environment to debug my asp code. I did that by going to Microsoft Development Environment 6.0, go to Debug menu -> Processes, and will see inetinfo.exe and then I can attach it. But lately, (and I don't know if it's got anything to do with the fact that I have recently installed Norton Internet Security and Norton Anti Virus) when I opened the Processes window, the list is blank, and the Machine drop down is also empty.
If I hit Properties or Refresh, I'll get the "Development Environment has encountered a problem and needs to close. We are sorry for the inconvenience" error, and the app will close. If I hit the Machine button, even if I find the machine, it'll say "Unable to connect to the machine". Has anyone had similar problems before?
View Replies
View Related
I have a problem with dialog boxes. When in Windows XP, the dialog boxes are too small, but when in other environments it is ok. What should I do to accomodate all environments?
View Replies
View Related
Is it possible for a user to enable permanent cookies but disable session cookies.....this seems like a contradition yet this is what I appear to be
reading in online articles?
View Replies
View Related
I m creating a cookies in my application and it work properly but i can't see the cookies where it will sotred i checked the cookies folder but i didn't find that I want to create a cookies file as the other web site create and store where other cookies will stored in Cookies folder or Temprory Internet files folder eg:1. arvind@google.co[1].txt this stored in cookies folder 2. arvind@msn[2].txt ....
View Replies
View Related
I am trying to find out how to access %APPDATA% environment variable on the client side of an ASP Intranet application. I need this so that I can perform some cleanup function. So far everything I read points to using Environment.GetEnvironmentVariables("APPDATA"); I can't seem to get this to work. Error message says Environment not defined.
View Replies
View Related
can anyone tell me difference between environment variables and server variables.
View Replies
View Related
Is it possible to load a DLL in an ASP page? I know that we can create instances of COM/ActiveX objects using Server.CreateObject, but what about a normal DLL stored on the system. Is there a way to load such a DLL and call its functions?
View Replies
View Related
I cannot display asp pages on my local pc but can display php pages and asp.net pages.
I get the following errors
1 -2147467259 (0x80004005) - when I have IE not show friendly error messages
2. Server Not Found - when I have IE show friendly error messages
3 Resources in use - sometimes - when I have IE not show friendly error messages
4. Sometimes I get the microsoft error report popup stating there was a problem with COM Surrogate
I am running Win XP Pro SP2 with IIS 5.1, and latest .NET framework (release not beta)
I have tried the following to solve this problem:
1. Set intranet security to as low as possible in internet options.
2 Set internet options to allow active content to run
3. Set security to low in IIS for the web site
4. Use http://localhost/webaddress.asp not C:filename.asp to open the asp page
5. Turned off script blocking in Norton Anti Virus
6. Have tried a simple "Hello World" page to ensure that there was no problem with the code itself
7. Checked that the asp.dll is where it should be
8. Have IIS set to allow anonomous logon
9. Have IIS control password
10. Have IIS allow windows integrated logon
I cannot think of anything else that would prevent the asp pages from displaying. I have searched the web and seen similar questions to this but no answers that seem to help resolve the issue.
View Replies
View Related
i have one text file when user click on link of this txt file ..than this file be downloaded to client machin...
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<a href="download.asp">dd.txt</a>
</body>
</html>
View Replies
View Related
I'm using IIS on my localhost and also in some free Brinkster webspace.
The problem I have is that when ever I try to use a script that includes the File System Object (as I want to read/write/copy files etc), the page won't load, the progress bar in the browser just very slowly increases, but never gets anywhere, and nothing ever loads.So I'm thinking it's a set up problem? I've tried the same scripts in my Brinkster webspace, and they don't work there (but I know they do work!) but Brinkster may have some restrictions.
Is an FSO problem like this common? Can I alter some settings on my localhost set up to solve it?
View Replies
View Related
I never used global.asa. I am thinking of load some data in
application_onstart which is read only from database(I mean the data will
never be changed in any asp pages of the applcation) and so any session for
this application doesn't need to reload data from database again, reduce
database connection and procedure call.
Am I right? just doesn't see that kind of comments on-line.
I want to make sure this is the right concept before I am heading too far.
View Replies
View Related
ASP Pages don't load in IIS 5.1 for XP, continuously wait.
I have this very same website running same version of SQL server but on two different OS's. The website with the very same configuration, but running on Win2k with IIS 5.0 is working perfect. But the system running with IIS 5.1 on XP continuously loads and never displays ASP pages. After a few moments, if i refresh, it says that there is too much traffic to display the page. I am not worried about the second error, because I can simply fix that by disabling 'HTTP keep alive'. I searched for people that had similar problems, and what I found is that the problem seems to have originated from a Critical Update and users are either switching to Win2K or went with Apache rather than IIS.
View Replies
View Related
I am creating a asp page containing a employee time-sheet table in it. there are two columns in the table, one is time-in one is time-out, and the table total have 20 lines.
In both time-in and time-out columns I want they show up as drop-down box say as: 9:00 am, 9:15 am, 9:30 am etc, , but I don't want the page load each drop-down box in total 20 lines, I only want the drop-down box loaded when the employee click the field.
I know maybe I shoud use JavaScript onClick funtion, but I am not sure about it, and I don't know the detail coding.
View Replies
View Related
i have an asp script to load an image. baiscally if there is an image reference in the database i want it to load that image but if there is not ref in the database i want it to load a default image.the code i wrote is
<% if Image = ""
then
%>
<img src="catalogueimages/default.gif">
<% else %>
<img src=<%=Image%>>
<% end if %>
have also tried null instead of "" but that didnt work either.
View Replies
View Related
I have IIS installed on Windows2000. When I create a .asp webPage with DreamWeaver, the browser (IE6) can't open it. No error messages, it just hangs there.
View Replies
View Related
I have downloaded an ASP WYSIWYG editor but I cant fingure out how to load an asp file into the editor. I think what I need to do is to load the file into the variable and then the editor loads the variable and formats the code accordingly. But I just don't know how to load the asp file into the variable. Here's my code so far:
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.OpenTextFile(Server.MapPath("Test/7610.asp"), 1)
Dim DataTransfer
DataTransfer = f.ReadAll
View Replies
View Related
I have a webservice and iis webserver. if i open de asmx file i get errors saying Unable to load DLL 'msvcm80d.dll'
i added the modules to path directories and the directorie containing my webservice.dll file. still get the same error.
View Replies
View Related
I was wondering if it is possible, without software, to limit access to a page or section using ASP based on server load? I know you can install software and then call it using ASP, but I would really like to avoid this. I'm not sure if .NET even has this capability without using software.
I have a future project that they want to limit access to the management section if the server is under great load or is loaded more than 70% for example. Every search seems to bring me to .NET but I haven't had time to read in depth to see if it's built into .NET or they are accessing it through software.
View Replies
View Related
I wanted to know if there is a way to load a asp page in to it self.
View Replies
View Related