Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Problems maintaining Session state

Reply
Thread Tools

Problems maintaining Session state

 
 
Sergey Poberezovskiy
Guest
Posts: n/a
 
      11-24-2003
Hi,

I have an ASP.Net application running on a web farm. I
use SessionState = "StateServer" and cookieless mode and
session Timeout = 20 mins.
This is a testing application where a user will be
sitting a number of tests for about one to two hours.
At any given time there could be up to 50 simultanious
users - not a huge load.

the problem is that every now and then the session
objects gets lost - I check the Session("User_Id") on
every Page_Load in order to proceed - and at some point
this becomes Nothing...
On subsequent logins it still works for some time - and
then becomes Nothing again.

Could anyone please help, or suggest what could
potentially be a problem?

Thanks in advance.

 
Reply With Quote
 
 
 
 
Sachin Kharsani[MSFT]
Guest
Posts: n/a
 
      11-24-2003
Hi,
How are you simulating the 50 users? Are they real life users? Or are you
using a Stress tool. If you are using a stress tool then how do you ensure
that all sessions are sending requests and not just one session . Maybe the
catch is here. Neways we can look into this ...Let me know the details.

Regards
Sachin Kharsani


--
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
This posting is provided "AS IS" with no warranties, and confers no rights.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
"Sergey Poberezovskiy" <(E-Mail Removed)> wrote in
message news:043801c3b247$230729c0$(E-Mail Removed)...
> Hi,
>
> I have an ASP.Net application running on a web farm. I
> use SessionState = "StateServer" and cookieless mode and
> session Timeout = 20 mins.
> This is a testing application where a user will be
> sitting a number of tests for about one to two hours.
> At any given time there could be up to 50 simultanious
> users - not a huge load.
>
> the problem is that every now and then the session
> objects gets lost - I check the Session("User_Id") on
> every Page_Load in order to proceed - and at some point
> this becomes Nothing...
> On subsequent logins it still works for some time - and
> then becomes Nothing again.
>
> Could anyone please help, or suggest what could
> potentially be a problem?
>
> Thanks in advance.
>



 
Reply With Quote
 
 
 
 
Sergey Poberezovskiy
Guest
Posts: n/a
 
      11-24-2003
I have not even got to that stage - 50 users is going to
be when the application goes live...
At the moment I am struggling even with 1 or concurrent
users - and the biggest concern is that it's not
consistant:
About a week ago we did about six tests - without a
hickup, and when we asked the client to test it - it
failed three times in a row...


>-----Original Message-----
>Hi,
>How are you simulating the 50 users? Are they real life

users? Or are you
>using a Stress tool. If you are using a stress tool then

how do you ensure
>that all sessions are sending requests and not just one

session . Maybe the
>catch is here. Neways we can look into this ...Let me

know the details.
>
>Regards
>Sachin Kharsani
>
>
>--
>*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

*-*-*-*-*-*-*-*-*-*-
>*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

*-*-*-*-*-*-*-*-*-*-
>*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>"Sergey Poberezovskiy"

<(E-Mail Removed)> wrote in
>message news:043801c3b247$230729c0$(E-Mail Removed)...
>> Hi,
>>
>> I have an ASP.Net application running on a web farm. I
>> use SessionState = "StateServer" and cookieless mode

and
>> session Timeout = 20 mins.
>> This is a testing application where a user will be
>> sitting a number of tests for about one to two hours.
>> At any given time there could be up to 50 simultanious
>> users - not a huge load.
>>
>> the problem is that every now and then the session
>> objects gets lost - I check the Session("User_Id") on
>> every Page_Load in order to proceed - and at some point
>> this becomes Nothing...
>> On subsequent logins it still works for some time - and
>> then becomes Nothing again.
>>
>> Could anyone please help, or suggest what could
>> potentially be a problem?
>>
>> Thanks in advance.
>>

>
>
>.
>

 
Reply With Quote
 
M
Guest
Posts: n/a
 
      11-25-2003
I have come accross a similar situation where session variables are getting
lost temporarily but come back again if user reloads the same page.

Found that whenever the server has to load/compile (not sure which) the
website dlls (for eg the first time a page is requested from a website) and
if the browser makes a subsequent request for another page (for eg the first
page contains an iframe) then the session variables are not visible in the
second page. Strangely the session variables become visible if the browser
re-submits the request. Normally the compile/load process only happens the
first time a page is accessed but our virus scanner appears to be amending
some file in the website (web.config perhaps) and so the web server
re-loads/re-compiles the dll's quite frequently.

We have got around this by not using an iframe in the offending page and
excluding the website directory (for now) in the virus scanner.


"Sergey Poberezovskiy" <(E-Mail Removed)> wrote in
message news:042701c3b2c1$4ebd58d0$(E-Mail Removed)...
> I have not even got to that stage - 50 users is going to
> be when the application goes live...
> At the moment I am struggling even with 1 or concurrent
> users - and the biggest concern is that it's not
> consistant:
> About a week ago we did about six tests - without a
> hickup, and when we asked the client to test it - it
> failed three times in a row...
>
>
> >-----Original Message-----
> >Hi,
> >How are you simulating the 50 users? Are they real life

> users? Or are you
> >using a Stress tool. If you are using a stress tool then

> how do you ensure
> >that all sessions are sending requests and not just one

> session . Maybe the
> >catch is here. Neways we can look into this ...Let me

> know the details.
> >
> >Regards
> >Sachin Kharsani
> >
> >
> >--
> >*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

> *-*-*-*-*-*-*-*-*-*-
> >*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> >This posting is provided "AS IS" with no warranties, and

> confers no rights.
> >*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

> *-*-*-*-*-*-*-*-*-*-
> >*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> >"Sergey Poberezovskiy"

> <(E-Mail Removed)> wrote in
> >message news:043801c3b247$230729c0$(E-Mail Removed)...
> >> Hi,
> >>
> >> I have an ASP.Net application running on a web farm. I
> >> use SessionState = "StateServer" and cookieless mode

> and
> >> session Timeout = 20 mins.
> >> This is a testing application where a user will be
> >> sitting a number of tests for about one to two hours.
> >> At any given time there could be up to 50 simultanious
> >> users - not a huge load.
> >>
> >> the problem is that every now and then the session
> >> objects gets lost - I check the Session("User_Id") on
> >> every Page_Load in order to proceed - and at some point
> >> this becomes Nothing...
> >> On subsequent logins it still works for some time - and
> >> then becomes Nothing again.
> >>
> >> Could anyone please help, or suggest what could
> >> potentially be a problem?
> >>
> >> Thanks in advance.
> >>

> >
> >
> >.
> >



 
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
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui C++ 0 04-27-2009 12:51 PM
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui C Programming 0 04-27-2009 12:51 PM
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui Python 0 04-27-2009 12:46 PM
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
maintaining session state of class objects in asp.net =?Utf-8?B?Q2hyaXM=?= ASP .Net 2 02-07-2005 08:52 PM



Advertisments