473,320 Members | 1,879 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,320 software developers and data experts.

session related issue

Hi Friends.
in my application i am facing problems in maintaining session state. I
am working on asp.net 2.0.
So i didnt checked the session on each page and almost the project is
completed. Now problem is like after 20 minutes the session gets
ended.so session related errors are coming when any operation like
insert or update is performed after that 20 minutes. how can i
redirect that page to login page after session timeout.I hav to write
code on each page or is there any other method to solve my problem...
(Though i can increase the session timeout period but i dont want
that). Waiting for ur reply.
thanks
Priyabrata

Mar 7 '07 #1
2 1174
Since the Session ends on the server side, the client can do a redirect as
long as it knows the length of the Session. One method is to use JavaScript
on the client, using the setTimeout() JavaScript method to wait for 21
minutes (or just after the length of the Session) to fire a method that
sends the browser to the login page.

--
HTH,

Kevin Spencer
Microsoft MVP

Help test our new betas,
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"pintu" <pr**************@gmail.comwrote in message
news:11**********************@t69g2000cwt.googlegr oups.com...
Hi Friends.
in my application i am facing problems in maintaining session state. I
am working on asp.net 2.0.
So i didnt checked the session on each page and almost the project is
completed. Now problem is like after 20 minutes the session gets
ended.so session related errors are coming when any operation like
insert or update is performed after that 20 minutes. how can i
redirect that page to login page after session timeout.I hav to write
code on each page or is there any other method to solve my problem...
(Though i can increase the session timeout period but i dont want
that). Waiting for ur reply.
thanks
Priyabrata

Mar 7 '07 #2
You can set up a Javascript bit to force the person to the login at that
time you estimate the timeout has occurred, although timeout is server side
and you cannot truly tell. If you do this, make sure you abandon session in
case you arrived early.

I do this in the master page, so it is on every form and programatically
avoid doing it on the login page.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*********************************************
Think outside the box!
*********************************************
"pintu" <pr**************@gmail.comwrote in message
news:11**********************@t69g2000cwt.googlegr oups.com...
Hi Friends.
in my application i am facing problems in maintaining session state. I
am working on asp.net 2.0.
So i didnt checked the session on each page and almost the project is
completed. Now problem is like after 20 minutes the session gets
ended.so session related errors are coming when any operation like
insert or update is performed after that 20 minutes. how can i
redirect that page to login page after session timeout.I hav to write
code on each page or is there any other method to solve my problem...
(Though i can increase the session timeout period but i dont want
that). Waiting for ur reply.
thanks
Priyabrata
Mar 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
13
by: jamie howard | last post by:
Hello there - we have a fairly busy server and we just started to have problems with PHP sessions failing. We've never had this problem before and to be honist, out server traffic is lower than it...
1
by: tamer.yousef | last post by:
We are working on an old asp project and we noticed that some users get kicked out of the session right after they log in. I investigated the issue and I found the cause: 1- The user login...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
11
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
13
by: Samir Chouaieb | last post by:
Hello, I am trying to find a solution to a login mechanism for different domains on different servers with PHP5. I have one main domain with the user data and several other domains that need...
9
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept...
3
by: sandeepsandeep | last post by:
Hi, I am facing one problem related to session out. In my PHP page I am using PHP session and from that page I am opening one popup. Pop up PHP code also uses Session variable. I am able to get...
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...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.