Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Facing Session Timeout problem

Thread Tools

Facing Session Timeout problem

Hema S via
Posts: n/a
Dear All,

Problem 1
I am using Sql Server for session state and setting the timeout property.
But my session is not getting expired at all.

sqlConnectionString="server=;uid=XX;pw d=XX;"

Problem 2

I also have session timeout problem when i switch across application.

Eg Main Application calling the sub application and their session are
running independently, when i try to swtich back to main application, iam
getting a session time out error and vice versa.

Can any one help me out.

Hema S

Message posted via
Reply With Quote
Brock Allen
Posts: n/a
> Problem 1
> -----------
> But my session is not getting expired at all.

What makes you think this? If it's because Session_End is not getting called,
then this is by design when you're storing your session out of process in
SqlServer or the NT State Server Service.

> Problem 2
> ----------
> I also have session timeout problem when i switch across application.

Each virtual directory is a seperate AppDomain in the worker process. All
objects in .NET are scoped to an AppDomain. Session and anything you put
into it are objects. Thus they can't be shared across applications. If you
want to share data across the application boundary you'll have to store that
data in an commonly accessible location (like a database).


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
I am facing a problem on Session. Plz.Urgently Solve It Jitendra Shinde ASP General 1 05-27-2004 10:17 PM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM
web.config session timeout and forms authentication timeout Do ASP .Net 2 11-23-2003 02:27 PM