Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Facing Session Timeout problem

 
 
Hema S via DotNetMonster.com
Guest
Posts: n/a
 
      04-21-2005
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.

Snippet
<sessionState
mode="SQLServer"
sqlConnectionString="server=10.10.10.216;uid=XX;pw d=XX;"
cookieless="false"
timeout="1"
/>

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 http://www.dotnetmonster.com
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-21-2005
> 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).

-Brock
DevelopMentor
http://staff.develop.com/ballen



 
Reply With Quote
 
 
 
Reply

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



Advertisments