473,326 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

session id and is session expired equal values

If I run the code, the ISSessionExpired = sessionid then the array list gets printed. I am facing this problem all of a sudden.

Expand|Select|Wrap|Line Numbers
  1. System.Web.SessionState.HttpSessionState curSession = HttpContext.Current.Session;
  2. if (curSession.IsNewSession)
  3. {
  4.   if (Utils.SessionHandler.IsSessionExpired == curSession.SessionID)
  5.   {
  6.    Error oError = new Error(true);
  7.    Utils.SessionHandler.AES_Error = oError;
  8.    string strVal = "{\"array_list\":{\"list\":[{\"Source\":'SessionExpired'}]}}";   Response.Write(strVal);
  9.   } 


thanks
Oct 6 '10 #1
1 1426
Frinavale
9,735 Expert Mod 8TB
I cannot understand what you are trying to accomplish in your code.

Where are you setting Utils.SessionHandler.IsSessionExpired?

Are you setting it before this code...perhaps you are setting it to curSession.SessionID somewhere before this if-statement is executed?

-Frinny
Oct 6 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Vance Kessler | last post by:
Yes, yes, I know why are we using Crystal 7 under Windows 2003. Well we have to for now. We had a website that was working just fine under Windows 2000 then we re-staged the boxes upgraded to...
0
by: CJ | last post by:
Hi We have Session Data lost randomly and Session State expired early. Our Intranet Application uses Window Server 2003 and .Net Framework 1.1. We set Session Time out to 60 minutes. but user...
2
by: David Popeck | last post by:
I have an ASP.NET application that is using forms authentication and I want to know when a session has timed out I have read quite a lot of posts here about this but no-one seems to have to same...
1
by: Bharath | last post by:
Hi All, I'm embedding a windows user control in aspx page and showing the user control in the IE, the problem that I'm facing is that the user session of the parent application is getting expired...
3
by: Erik | last post by:
Hey! I'm using a shared webserver, where I don't have access to the php.ini. Since a few days, users can not log-in in my CMS anymore, as sessions stopped working. When I use phpinfo() or...
1
by: manojuniverse | last post by:
Hi can any body help me in knowing in javscript on client side whether session has expired or not. Plz help me. Thanks in advance.
15
by: plsHelpMe | last post by:
Hi All, I am having a problem. I am using DOJO toolkits to fetch some data on my webpage. Now suppose if i leave my webpage for some time and the session gets expired and then i try to click on...
4
by: sriram | last post by:
Hello Friends, I am new to this group so big HIIIIIIII to all :) fine i have a serious doubt about session handling in PHP. After 20 min (default time) session getting expired, session values...
6
by: akshaykr | last post by:
Hi Friends, Please help me on the following: 1. the session gets expired in the php after login by the users! Iam using the code as follow: <?php session_start(); ?> <html>
3
by: vijay7896 | last post by:
I've got some ASP pages where the session variable values get blown away BEFORE the session times out. I can't understand it. For example: if a user logs into my ASP app using his password which is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.