Hi All,
I recently discovered that my session cookies on the web host disappear
within 30 seconds.
I created some very simple asp scripts (it took me a while until I
discovered why my shopping cart acts very weird...) to check the session
cookies.
On one asp page I set up cookies:
setcookie.asp
<%
Session("TransactionID") = 15
Session("CustomerID") = 1
%>
and on
readcookie.asp
<%
response.write "Session(""TransactionID"")=" & Session("TransactionID") &
"<br>"
response.write "Session(""CustomerID"")=" & Session("CustomerID") & "<br>"
%>
The same asp pages run on my XP Pro show that the session cookies don't
expire as long as I close the browser, while on the remote web server, if I
do a refresh on readcookie.asp after 30 seconds, they are gone.
I run ASP on the server and all I know is that it is a Plesk server. No idea
if it actually a Linux server or a Windows one...
Do I have to setup expiry time or something for session cookies?
Any information appreciated.
Regards,
Nicolae 6 3865
> The same asp pages run on my XP Pro show that the session cookies don't expire as long as I close the browser, while on the remote web server, if I do a refresh on readcookie.asp after 30 seconds, they are gone.
http://www.aspfaq.com/2157
I run ASP on the server and all I know is that it is a Plesk server. No idea if it actually a Linux server or a Windows one...
Well, that's a big difference. You're going to need to find out if it is
Windows, and if not, what kind of ASP emulator is running. It could be a
setting in the web server (e.g. they could have disabled session state), but
for anything on the server, if you don't have direct access to it, you're
going to have to talk to the technical people there anyway.
A
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:BE5E6786.38E7%te*****@dnartreb.noraa... The same asp pages run on my XP Pro show that the session cookies don't expire as long as I close the browser, while on the remote web server, if I do a refresh on readcookie.asp after 30 seconds, they are gone.
http://www.aspfaq.com/2157
I run ASP on the server and all I know is that it is a Plesk server. No idea if it actually a Linux server or a Windows one...
Well, that's a big difference. You're going to need to find out if it is Windows, and if not, what kind of ASP emulator is running. It could be a setting in the web server (e.g. they could have disabled session state), but for anything on the server, if you don't have direct access to it, you're going to have to talk to the technical people there anyway.
Thank you very much, Aaron. I read the FAQ and I think it is a problem on
the web server. Apparently they have a Windows server.
I contacted them, waiting for their reply.
Regards,
Nicolae
"Nicolae Fieraru" <no****@please.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... "Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message news:BE5E6786.38E7%te*****@dnartreb.noraa... The same asp pages run on my XP Pro show that the session cookies don't expire as long as I close the browser, while on the remote web server, if I do a refresh on readcookie.asp after 30 seconds, they are gone.
http://www.aspfaq.com/2157
I run ASP on the server and all I know is that it is a Plesk server. No idea if it actually a Linux server or a Windows one...
Well, that's a big difference. You're going to need to find out if it is Windows, and if not, what kind of ASP emulator is running. It could be a setting in the web server (e.g. they could have disabled session state), but for anything on the server, if you don't have direct access to it, you're going to have to talk to the technical people there anyway.
Thank you very much, Aaron. I read the FAQ and I think it is a problem on the web server. Apparently they have a Windows server. I contacted them, waiting for their reply.
Regards, Nicolae
Try this:
Response.write Session.Timeout
What do you get?
--
--Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
If this is a random occurrance, you're not alone.
I think I have found the solution though. If the server is a Windows
server, which I suspect it is, the name of the server must not contain any
_.
Micorsoft IIS6 randomly drops sessions by design if an underscore _ is
contained in the server name, some sort of security flaw or something. To
fix the problem make sure the machine name does not have an _ and make sure
the workgroup it belongs to does not have an _.
I recently experienced this problem on a new server I am renting and changed
the workgroup as stated above and it seems to be stable.
Try it and see
"Nicolae Fieraru" <no****@please.com> wrote in message
news:42********@duster.adelaide.on.net... Hi All,
I recently discovered that my session cookies on the web host disappear within 30 seconds. I created some very simple asp scripts (it took me a while until I discovered why my shopping cart acts very weird...) to check the session cookies.
On one asp page I set up cookies:
setcookie.asp <% Session("TransactionID") = 15 Session("CustomerID") = 1 %>
and on
readcookie.asp <% response.write "Session(""TransactionID"")=" & Session("TransactionID") & "<br>" response.write "Session(""CustomerID"")=" & Session("CustomerID") & "<br>" %>
The same asp pages run on my XP Pro show that the session cookies don't expire as long as I close the browser, while on the remote web server, if I do a refresh on readcookie.asp after 30 seconds, they are gone.
I run ASP on the server and all I know is that it is a Plesk server. No idea if it actually a Linux server or a Windows one... Do I have to setup expiry time or something for session cookies? Any information appreciated.
Regards, Nicolae
If this is a random occurrance, you're not alone.
I think I have found the solution though. If the server is a Windows
server, which I suspect it is, the name of the server must not contain any
_.
Micorsoft IIS6 randomly drops sessions by design if an underscore _ is
contained in the server name, some sort of security flaw or something. To
fix the problem make sure the machine name does not have an _ and make sure
the workgroup it belongs to does not have an _.
I recently experienced this problem on a new server I am renting and changed
the workgroup as stated above and it seems to be stable.
Try it and see
"Nicolae Fieraru" <no****@please.com> wrote in message
news:42********@duster.adelaide.on.net... Hi All,
I recently discovered that my session cookies on the web host disappear within 30 seconds. I created some very simple asp scripts (it took me a while until I discovered why my shopping cart acts very weird...) to check the session cookies.
On one asp page I set up cookies:
setcookie.asp <% Session("TransactionID") = 15 Session("CustomerID") = 1 %>
and on
readcookie.asp <% response.write "Session(""TransactionID"")=" & Session("TransactionID") & "<br>" response.write "Session(""CustomerID"")=" & Session("CustomerID") & "<br>" %>
The same asp pages run on my XP Pro show that the session cookies don't expire as long as I close the browser, while on the remote web server, if I do a refresh on readcookie.asp after 30 seconds, they are gone.
I run ASP on the server and all I know is that it is a Plesk server. No idea if it actually a Linux server or a Windows one... Do I have to setup expiry time or something for session cookies? Any information appreciated.
Regards, Nicolae
It is not IIS it is IE that is dropping cookies and it is by design. http://support.microsoft.com/default...b;en-us;316112
--
--Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
"Adam Short" <ad**@phuture-uk.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... If this is a random occurrance, you're not alone.
I think I have found the solution though. If the server is a Windows server, which I suspect it is, the name of the server must not contain any _.
Micorsoft IIS6 randomly drops sessions by design if an underscore _ is contained in the server name, some sort of security flaw or something. To fix the problem make sure the machine name does not have an _ and make sure the workgroup it belongs to does not have an _.
I recently experienced this problem on a new server I am renting and changed the workgroup as stated above and it seems to be stable.
Try it and see
"Nicolae Fieraru" <no****@please.com> wrote in message news:42********@duster.adelaide.on.net... Hi All,
I recently discovered that my session cookies on the web host disappear within 30 seconds. I created some very simple asp scripts (it took me a while until I discovered why my shopping cart acts very weird...) to check the session cookies.
On one asp page I set up cookies:
setcookie.asp <% Session("TransactionID") = 15 Session("CustomerID") = 1 %>
and on
readcookie.asp <% response.write "Session(""TransactionID"")=" & Session("TransactionID") & "<br>" response.write "Session(""CustomerID"")=" & Session("CustomerID") & "<br>" %>
The same asp pages run on my XP Pro show that the session cookies don't expire as long as I close the browser, while on the remote web server, if I do a refresh on readcookie.asp after 30 seconds, they are gone.
I run ASP on the server and all I know is that it is a Plesk server. No idea if it actually a Linux server or a Windows one... Do I have to setup expiry time or something for session cookies? Any information appreciated.
Regards, Nicolae
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mrbog |
last post by:
Tell me if my assertion is wrong here:
The only way to prevent session hijacking is to NEVER store
authentication information (such as name/password) in the session.
Well, to never authenticate...
|
by: PM |
last post by:
I'm trying to make a kind of search history containing the 3 last
searched words. So I'm using 3 Session Variables: Word1 / Word2 /
Word3.
In order to get this history working, I need to put the...
|
by: Larry Woods |
last post by:
I am losing Session variables, but only those that are set in the page
previous to a redirect to a secure page.
Anyone seen ANY situation where Session variables just "disappear?"
Note that...
|
by: BillH |
last post by:
My page works fine on IE but nn (7.2 is my test version) seems to drop my
session variables. I have the lowest security settings allowing all cookies.
Wazzzz up?
|
by: samtran331 |
last post by:
Hi all
I've got a .Net site that has 3 session variables...the variables should persist over 23 unique insert pages, 23 update, and 23 "view total" pages...
And the problem is once I get past one...
|
by: Alexander Widera |
last post by:
hi,
who has seen the follow problem or could help please?
i visit a page .... i read a sesssion-var . ... everythink works...... i
visit the page again..... error ... the sessionvar is null .... i...
|
by: Eric Porter |
last post by:
Problem :
I have a Web Server which is session enabled. I have a method within that
server which if I call it repeatedly, it seems to forget the session every
six re-tries, and all the data...
|
by: Bocah Sableng |
last post by:
Hi, I'm new member of this group.
I had added new virtual host at my intranet server. The new virtual
host configuration on httpd.conf is similar with the old one.
At the new virtual host, the...
|
by: bgold12 |
last post by:
When a user logs onto my site, I set some session data using php:
....
session_start();
....
$_SESSION = 'value';
....
From what I understand, this should store the session data (i.e. the...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |