Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 Funny Session Timeouts

Author  Topic 

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-03-23 : 04:27:13
hiya All,
we are having this funny problem on one of our win2003 hosting accounts.

When a user logs in. The session times out almost immediately.

We set the session with this script.

<%
user_login = request.form("username")
session("user") = user_login
%>


but as you navigate the pages, it times out almost immediately (less than 1min). We are not using cookies at present, and not launched this particular site to the public, so it cant be a case of heavy traffic.

I also checked the <%=session.timeout %> property, and its set to 30minutes.

The funny thing, is that we have multiple accounts running on that server.

We are talking with our provider, but no avail yet.

Any advice on this ???
Afrika

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-03-23 : 07:36:27
is ti possible that you're setting the session timeout somewhere else?

Go with the flow & have fun! Else fight the flow
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2006-03-23 : 08:28:24
Check your server event logs to see if IIS is restarting. It would restart all sessions on a given website, and I'm not clear if only one user is expiring from your post. If others on the same website are not expiring, that's a fish of a different kettle (or something like that).
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-03-25 : 16:07:53
Thanks Guys for your advice, was a real nightmare.

We had to incorporate cookies and query strings to keep the session alive.

Hiya Sam, It wasnt IIS restarting.

problem was from my hosting provider. They said they changed the account application pool, and its been ok since.

Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2006-03-25 : 22:29:14
If the application pool was cycling, that was the problem. You shouldn't need to incorporate cookies and query strings.
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-03-26 : 02:39:46
>> You shouldn't need to incorporate cookies and query strings.

Ok,

Well, We never actually use query strings, except this instance.

But for scalability, we always incorporate cookies.

Go to Top of Page
   

- Advertisement -