N
Nicolae Fieraru
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
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