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

Regarding Session Expire

4
Dear Friends


This problem comes in IE5 browser
I have a problem and i an very frustrated bcs of that,When a user login his id is maintain in session, and then if he log out that session expires......but if we copy the inner link when a user is login and paste in the browser(IE5) then after logout, then that page is opened ("WITHOUT POSTBACK") and if a user want to access any buttons then it redirect to login page..............

So the problem is....... after pasting the link is in browser why that page is open and how can i solve this so that page can not open and redirect to login page....

Please help me i am very much in trouble bcs of that.



Thanx
With Regards
Divas Gupta
Jun 23 '07 #1
3 1079
shweta123
692 Expert 512MB
Hi,

Do you want to say,After copying any page link in IE,it is going to that page even after logout? and then redirecting to Login.asp as session is expired?
Then I think that behaviour is right.Can you also specify some code details so that we can look into it?

Dear Friends


This problem comes in IE5 browser
I have a problem and i an very frustrated bcs of that,When a user login his id is maintain in session, and then if he log out that session expires......but if we copy the inner link when a user is login and paste in the browser(IE5) then after logout, then that page is opened ("WITHOUT POSTBACK") and if a user want to access any buttons then it redirect to login page..............

So the problem is....... after pasting the link is in browser why that page is open and how can i solve this so that page can not open and redirect to login page....

Please help me i am very much in trouble bcs of that.



Thanx
With Regards
Divas Gupta
Jun 25 '07 #2
Frinavale
9,735 Expert Mod 8TB
I believe what's happening is that your SessionID cookie is shared between all of your opened IE browsers.

This means that if you are logged in one IE Browser and you open another, they will share the same SessionID and so each instance of the IE browser is "logged in".

What you should probably do is for any control that does a postBack (this includes dropDownList changes etc) add in a check to make sure that the session isn't a new session.
This will prevent the user from preforming any actions even though their session has expired.
Expand|Select|Wrap|Line Numbers
  1. Private Sub BTN_myButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTN_myButton.Click
  2.      If Session.IsNewSession = False Then
  3.           'do code, user is allowed
  4.      Else
  5.           'redirect the user..their session has expired.
  6.      End If
  7. End Sub
  8.  

It does seem sort of weird that this is happening in IE5...I thought this SessionID cookie sharing was new to IE7...Or are you talking about when your application opens a child window?

-Frinny
Jun 25 '07 #3
gomzi
304 100+
Dear Friends


This problem comes in IE5 browser
I have a problem and i an very frustrated bcs of that,When a user login his id is maintain in session, and then if he log out that session expires......but if we copy the inner link when a user is login and paste in the browser(IE5) then after logout, then that page is opened ("WITHOUT POSTBACK") and if a user want to access any buttons then it redirect to login page..............

So the problem is....... after pasting the link is in browser why that page is open and how can i solve this so that page can not open and redirect to login page....

Please help me i am very much in trouble bcs of that.



Thanx
With Regards
Divas Gupta
In my opinion, this problem will occur if you are caching the pages.
setting no-cache on all the pages will prevent the problem.
Jun 25 '07 #4

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

Similar topics

4
by: Ryan Hubbard | last post by:
I would like to limit multiple logins for a user. How and when does the session id expire? Can I set it so after x minutes of inactivity it would expire. How do I check if session id exists? If...
3
by: Enoch Chan | last post by:
I would like to set a Session variable to a value. In Vbscript it should be Session("ZoomValue")=500 How can I set this session variable by using Javascript? Thanks
3
by: Craig Storey | last post by:
I have a form where users logged in using sessions can edit articles in a WYSIWYG editor. Some of them take their time and don't like to save their work very often and occassionally the sessions...
5
by: tshad | last post by:
If I am using FormsAuthentication, is there a way to check who is logged in? I want to be able to check at any particular time, not just how many people are logged in, but who they are. One...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
0
by: T Ralya | last post by:
My Session restarts on each postback of my ASP.NET page. I'm trying to figure out why. I set up a test application and have verified that the Request Object has one cookie on each entry. This...
2
by: Mike Hofer | last post by:
Okay, so I finally figured out forms authenticaton, to a degree and I still have one question: If a user walks away from my application, and the cookie expires, and then he comes back, does...
2
by: satisharas | last post by:
Hello, I am trying to write a custom session manager in ASP.NET 2.0 using oracle as the backend. I want to know how the session expires in web garden and we are using NLB (a session can be...
1
by: ljayz | last post by:
i want my script to automatically expire session in a given period of time e.g 5mins (as a test). my problem is when ive set session_cache_expire(5); in my script, run it and wait for about 6-10mins...
4
by: Bishop | last post by:
ASP.NET 2.0/IIS 6/Windows 2003 I have all my session settings set to the standard 20 min. but many times the session will time out prior to 20 min. of inactivity. My questions are: 1. Is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.