|
Subject:
|
Persistent Session State accross multiple pages
|
|
Posted By:
|
Admiral1701
|
Post Date:
|
12/13/2006 5:25:07 PM
|
Hi,
I'm not sure if this is ASP or Server related, but here is what's happening...
I developed my site on Windows2000 server with SQLExpress, the live server is Windows2003 Server with SQLExpress. I have mirriored all the IIS settings and made everything as similar as possible. Both also have ASP.NET2.0 installed - even though I developed everything with Classic ASP.
The problem is that on the 2000 server, once a person is logged in, their session is persistent. That is, accross multiple pages, until timeout or logout occurs.
On the 2003 Server, once the user is logged on, I can return the value from the database to the same login page and set the session varible, but it does NOT persist accross multiple pages.
other notes: -Yes, I have enabled session state in IIS -The pages are identicle (uploaded from test server)
So, I am wondering if anyone else has had this problem, or if there is a fix or a workaround.
Thanks a bunch.
|
|
Reply By:
|
mat41
|
Reply Date:
|
12/13/2006 5:46:56 PM
|
IME all you need to do is, as you have done, enable session state in IIS (along with .asp pages, includes if required etc...)
Are you trying to pass Session-based cookies or session variables? I suggest using the later, they will persist accross browsers within the same session only. Assign them like so:
sql = "SELECT ID,...,... FROM users WHERE..." set getInfo = conn.execute(sql) 'assign the users unique ID from the query above: session("userID") = getInfo(0)
Wind is your friend Matt
|
|