Non Persistent Cookie In A Web Farm Using Classic Asp (3.0)
Im using classic ASP (3.0) and I have a web farm with 2 webservers
(webserver A and webserver B, both windows server 2003). I do not want
to store any client specific information on the webserver (therefore do
not intend to use the session object- as you cannot gaurantee which
server the user will go to). I want to store a small value (e.g. a Y/N
value or an Id) on the client machine for the duration of their
browsing session, hence I want to use a non persistent cookie (in
client memory) not a persistent cookie that will be written to disk as
a file.
Q. Therefore if I create a non persistent cookie (i.e. it resides in
the client browsers memory) and set this when the user was on webserver
A, can I read the value server side on subsequent requests even if the
user is redirected back to webserver B? As the webservers are part of
the same domain name Im assuming I can..?
Q. Using non persistent cookies (in client in memory) im assuming the
session Id that gets created by IIS has no use, as I am using client
side storage, hence it is worth disabling this on the webserver for
performance reasons?
Q. Is there a way, when using non persistent cookies that the client
user can see the values of this cookie client side, are their any
downloadable tools for example they can run?
Im aware of the issues with size of using cookies and users can disable
them, my question is more related to using them in a web farm. Im also
not intended in the short term to upgrade to asp.net as Im aware there
are alternatives for state storage in this. I hope someone can clarify
these points for me. Note: I see many articles talking about cookies
but none relating to web farms and cookies, those that do talk solely
about the session object (Server side), none really go further to talk
about (non persistent / persistent cookie usage with web farms client
side.
View Replies
ADVERTISEMENT
Im using classic ASP (3.0) and I have a web farm with 2 webservers
(webserver A and webserver B, both windows server 2003). I do not want
to store any client specific information on the webserver (therefore do
not intend to use the session object- as you cannot gaurantee which
server the user will go to). I want to store a small value (e.g. a Y/N
value or an Id) on the client machine for the duration of their
browsing session, hence I want to use a non persistent cookie (in
client memory) not a persistent cookie that will be written to disk.
Q. Therefore if I create a non persistent cookie (i.e. it resides in
the client browsers memory) and set this when the user was on webserver
A, can I read the value server side on subsequent requests even if the
user is redirected back to webserver B? As the webservers are part of
the same domain name Im assuming I can..?
Q. Using non persistent cookies (in client in memory) im assuming the
session Id that gets created has no use, as I am using client side
storage, hence it is worth disabling this on the webserver for
performance reasons?
Q. Is there anyway using non persistent cookies that a user can see the
values of this cookie client side, are their any downloadable tools for
example they can run?
Im aware of the issues with size of using cookies and users can disable
them, my question is more related to using them in a web farm. Im also
not intended in the short term to upgrade to asp.net as Im aware there
are alternatives for state storage in this. Hope someone can clarify
these points for me. Note: I see many articles talking about cookies
but none relating to web farms, those that do talk solely about the
session object (Server side), none really go further to talk about (non
persistent / persistent cookie usage with web farms client side.
View Replies
View Related
How do I track a referral from an affiliate site through a cookie. I would like the aff links to be formatted
Code:
View Replies
View Related
We are working on an old asp project and we noticed that some users get
kicked out of the session right after they log in.
I investigated the issue and I found the cause:
1- The user login successfuly.
2- He gets redirected to the menu screen. that's when I set some
cookies to cookie("cookie name").expires = Now. that when the session
starts to disapear, once the user tries to access other pages (or even
refresh), the ASPSESSIONID cookie disapears.
I did some debugging on the http_cookie collection and looks like the
ASPSESSION disapears once I set the cookie expiration, although I set
the expiration for cookies unrelated to the ASPSESSIONID.
Here is the tricky thing, it works on 90% of the machines, and it
doesn't on other machines, it's also random, so some users who had the
problem, are now able to work on the system and the problem disapeard.
Have you guys ever had this problem, or do you know if it is related to
IE batches or service packs?
View Replies
View Related
i have a problem with a web farm. an application asp net 1.1 that works
in different servers.doesnt works in the web farm (4 servers balanced). The error it says is
"System.Web.HttpCompileException: External component has thrown an exception"
basically is a page that its requested in one server and served by other
server and are different version of the application
.. the technichal staff says its applied the same version in the four servers
and i can believe them.
View Replies
View Related
Is it possible to use session in web farm? Some say just use cookies because
session does not work in web farm. But others say something about persist
into SQL Sever, if this is true please tell me more about this approach.
View Replies
View Related
I will soon be undergoing a project where I will be migrating four to five web applications, developed in classic ASP, from a single Windows Server 2000 to a web farm that will utilize two, Windows 2003 Servers.
All of the applications utilize user/session management and I know that ASP's built-in session management cannot be carried across multiple servers.
I've been researching products available for purchase out there on the web, which allows you to include new code, which overrides ASP's built-in session management, by using a database to store sessions.
They all advertise that their solutions simply require just one line of code to be added to each ASP pages that uses Sessions, without any other changes to the existing ASP code.
Can someone who has done something similar advise on their experience? Is this really as easy as they are advertising, or are there other issues to take into consideration? Code:
View Replies
View Related
I'm a (moderate) newbie to and I'm building an ASP/VB db-driven site where the user selects a brand from a menu, this determines the contents for another menu with models. Selecting a model displays details about that model. Nothing too original here Its a small low traffic site with no ecommerce elements - just window shopping.
My questions is : I need to know on all pages what the current brand and model are (and modify these when the user changes them).
From what I understand there are 3 (?) methods: server vars, session vars or hidden fields. Which should I use for this purpose and can anyone point me to some good related examples/tutorials? (I've read the stuff on this site of course).
View Replies
View Related
I have a logon field. When data is entered, the user is taken to a protected page.
The problem/question is: Whe you click the back button and return to the logon page,the user data is still in the field. I want it cleared when the user returns to the logon page.How should I approach this problem. Java?
View Replies
View Related
In my event log on my IIS 6.0 Windows 2003 Server I get the following Active Server Pages Error
Error: The Template Persistent Cache initialization failed for Application Pool 'DefaultAppPool' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..
View Replies
View Related
When I set a cookie in global.asa in the sub session_onstart, even if
I have "privacy" in IE 6.X set to "block all cookies" the cookie is
still set, and I can get it on other pages.
I can't find an article that addresses this as a specific issue. Why
does the browser get the cookie when it is set in the session_onstart
event even when I have "block all cookies" set?
View Replies
View Related
I want to know what's the differences between session cookie and regular cookie.
In ASP, when we create cookie, we do the following to identify an user:
Response.Cookies("name") = value
Is this regular cookie? How about session cookie? and when to use which?
View Replies
View Related
I have just moved an ASP Classic website to a new hosting company that has a
number of .NET components available. The website works fine after the move
with one exception. We were creating PDFs using ASPPDF for ASP but now it
looks like only ABCPDF.NET is available.
My knowledge of ASP.NET is very limited at this time and I am planning on
converting the site to ASP.NET soon but I really need to get the PDF working
as soon as I can.
View Replies
View Related
I am trying to add a Visual InterDev project to Visual Source Safe 6d.
Normally I just go up under Project | Source Control | Add to Source Control
and I can load the project to VSS but now when I try to add the project to
VSS I get the error:
"Cannot establish source control for the Web Application. The server does
not have a source control system installed on it, or the user name is not
recognized."
I am on a workstation which has VSS installed. VSS is also installed on the
web server istself. I atttached to the VSS database as "admin" and under
my own user name but I continue to get the same error.
What could be wrong? Perthaps I am using the wrong version of VSS. Is
version 6d compataible with Visual InterDev? Or do I need an earlier
version?
View Replies
View Related
I am developing on WXP SP1 with VS.Net 2003 and VS6 installed. I cannot get
my localhost webserver to render any classic ASP pages. ASP.Net and standard
HTML works.
If I request an ASP page from localhost the browser hangs for several
minutes before just doing nothing. The status bar says the website is found
but nothing is ever downloaded.
I have verified the mappings in the IIS manager and I have re-registered the
ASP.DLL. I am now at a complete loss.
View Replies
View Related
The following code works on IIS 5.0 on a Windows 2000 server.
Response.Clear Response.ContentType = "application/rtf" Response.AddHeader
"content-disposition", "inline;filename=letter.rtf" response.write l_strBuffer
But on IIS 6.0 running on Windows 2003 server we get an error.
"Internet Explorer cannot download <file name>.
Interner Explorer was not able to open this Internet site. The site is
either unavailable or cannot be found. Please try again later."
After increasing the AspBufferLimit attribute in the metabase.xml, we were able to resolve the issue.
Is there any other way to resolve this without modifying the metabase.xml?
View Replies
View Related
Can you develop Classic ASP pages using VS.net?
View Replies
View Related
I want to rename the file which i just uploaded it on the server.I want the code that do this.
View Replies
View Related
I'm migrating a classic ASP site from IIS 6 to IIS 7 and I'm finding some minor problems that I'm assuming are IIS 7 config related. The problem I'm concerned with right now is that when I run the asp pages, they have lost all their image and CSS links. Functionality is fine (that is I can query the DB, update records, etc) but all graphic features have been lost. how to solve this issue?
View Replies
View Related
Does anyone know for sure whether classic ASP (ASP3 ?) will run on Longhorn?
View Replies
View Related
I've been working in .NET for some time now and I don't remember specifically
how asp classes are cleaned up in classic asp. I've been put on a Classic
ASP project(ugh) and we're having some serious stability problems. Once we
reach a point of sustained CPU useage of over 80% IIS 6 restarts the w3wp.exe
process which of course terminates all sessions and resets the website.
I've
noticed that the previous developer has an include which creates a couple of
class objects in ASP. Not third party or "CreateObject" objects, but ASP
classes. This include is in A LOT of files and the classes not being
destroyed in any of them.
My question is could this be the problem? I seem to remember a problem with
ASP classes and not destroying them causing leaks of some sort. I need to
mention that the memory doesn't seem to be leaking but the CPU utilization
goes wacko as if ASP/IIS is corrupt. My environment is Windows 2k3 and IIS
6. The previous environment was Windows 2K and IIS5. Both environments had
the problem.
Before I go through these hundreds of files I was wondering if anyone
remember what the problem was with ASP classes not being destroyed.
View Replies
View Related
I am using ASP, and I would like to read the country of origin from the HTTP header information of my visitors. I would use this to geotarget different ads to visitors from outside the US.
For other reasons, I don't want to use a solution like GeoIP - I want to do it through ASP code if possible. Has anybody had any experience with this?
View Replies
View Related
I have a system written in classic asp and a lot of Javascript. Due to
its performance and security issue, we decided to re-write this big
module. I heard that C/C++ has a better support in performance and
security (relatively) but here comes my questions:
1. Can ASP talk to C/C++? Because from my experience I use C/C++
mainly for application console.
2. If I want to exclude most of the Javascript and use other
programming language instead, can ASP.NET do it? Is there any
compatibility issue between Classic ASP/ASP.NET/Javascript?
View Replies
View Related
Does anybody out there consume a web service using classic ASP?If anyone has any useful resources for doing this, I'd love to see them. I haven't found much online at all. Long story but I'd rather not have to learn .net or switch to php for this one project
View Replies
View Related
I'm maintaining an ASP Classic file that has HTML withing
Response.Write methods such as
<%
Response.Write "<table><tr><td>"
Response.Write testVariable
Response.Write "</td></tr></table>"
%>
Would their be a performance hit if I were to write this instead?
<table><tr><td><%=testVariable%></td></tr></table>
I need some confirmation.
View Replies
View Related
What do y'all see for the future of ASP in light of MS decision to replace
FrontPage with a new series of development tools? All of them mention ASP.NET,
but no mention of the ASP I love. Code:
View Replies
View Related
Has anyone had any success in editing/debuggin classic ASP in Visual Studio 2003?
We have recently received a new project from an outside contractor done in .Net 1.1 and now have VS 2003 installed. We have tried to use it to work with our legacy ASP applications but we are stumped on how to get the debugger to work. It keeps trying to "build" and errors out because it cannot find a sub main().
If you have had any luck with this please either point to a resource that will get us started or share the steps to get this going.
View Replies
View Related
Trying to create a mini-ASP web dev with a couple of PCs at school. When the teachers are happy with the site on the LAN then going to upload it to the school site. Problem is having real problems with the ASP side of things.
Timeline of events is as follows:
1) Added IIS (via Add/Remove Windows Components) on WinXP Pro machine (6 month old Acer to be exact). No problem.
2) Created a folder called asp in the inetpub folder and made it web shareable by right-clicking on it and setting the Web Sharing bit. I usually have read, execute and directory browsing. No problem.
3) Put a text file (with an ext of .asp) in this new asp folder, typed the usual text of <%=now()%and saved it. No problem.
4) Went to http://itpc1/asp and clicked on the new 'test.asp' file. Date and time appears. No problem.
5) Went to my colleague's little office (showing him how to do asp) to make sure his PC can see the web page working OK (both machines are on the same network) and the page displays fine. No problem.
6) Now the reason for this setup is that the PC in his little office is only WinXP Home and the PCs with WinXP pro on are the children's suite, which he can't have sitdown access to all the time. My plan was that I would web share the asp folder AND network share the folder so that he can be dropping files in and doing edits on the asp folder via the network share and then view the results via the http://itpc1/asp web share.
Proceeded to network share (all are setup for simple sharing) the asp folder. No problem.
7) Went into network places on his WinXP Home PC, found the folder no problem, created a shortcut to this folder no problem, he can open up, edit and save changes no problem.
HOWEVER, as soon as he goes back to the http://itpc1/asp page all of the asp files generate an ASP error saying the Invalid Default Script Language.
I go back downstairs and try and get the pages via the main WinXP Pro machine and this now generates the exact same problem.
The long and short of it is, I have to uninstall and then reinstall IIS to fix the problem. Nothing in the IIS settings has been changed. I never touch the default scripting lang setting, which is in fact the right setting of vbscript.
Could somebody please let me know what is happening. Why is the XP Home PC screwing things up when the files are network shared on the WinXP Promachine?
View Replies
View Related
I'm using classic ASP with VBscript and I would like to have a facility for XML object serialization, just like the Serializer object that is available in ASP.NET. Is there such a thing for classic VBscript.
View Replies
View Related
I have tryed my best to understand the asp.net, but the visual of asp.net pages are the most complicated, because on asp we have total control over the layout the page, on the asp.net for example we have a lot of components, like tables wich already have paging, etc.. a lot of code must be rewritten.I am having a lot of dificulties to try converting my asp projects to asp.net... what do you think about this?
View Replies
View Related
I have scripts on a server that awhile back had new option/server packs installed (to accomodate security and net framework issues) and my classic asp date references
"Date()" and "Now" will sometimes flip flop the formatting of the date from 10/3/2003 to 3/10/2003 (european mode).
What would be a good way to use an include file to perhaps an asp.net date object, or where would I find a good reference to using an aspx file to calculate and display the date properly so that I can avoid this flip flop snafu of the date formatting.
View Replies
View Related
I am looking to learn Classic ASP and was wondering if anybody could recommend any good books for learning Classic ASP from scatch.
View Replies
View Related
Has anyone used the traditional Classic ASP / Access DB / IIS configuration on Vista yet?
I haven't, but before I upgrade to Vista I would like to ensure all my websites will work once I do. What version of Vista is best to use (and includes IIS) ? What problems did you have with database connectivity ?
View Replies
View Related