Session State

  • Thread starter Thread starter lalit
  • Start date Start date
L

lalit

Hi every one
I m storing a value in session like
session["User"] = some value
then I am checking evrery page onLoad that if this session["User"] ==
Null then Send to login page.
It does that but If I open a new Browswer window to make another User
then it show me the same User. Why is that ?
Why it having same Response.Write(Session.SessionID) same on each
browser????????//
Is there any seting I have to change.

PLease
 
You don't drop your current session until either 1) to navigate to another
application/site; or 2) you close the browser.
When you redirect to the new page, try session.remove(whichever) or
session.removeall.

Ross
 
Session.Abandon()

The page could be cached...

You don't drop your current session until either 1) to navigate to another
application/site; or 2) you close the browser.
When you redirect to the new page, try session.remove(whichever) or
session.removeall.

Ross




Hi every one
I m storing a value in session like
session["User"] = some value
then I am checking evrery page onLoad that if this session["User"] ==
Null then Send to login page.
It does that but If I open a new Browswer window to make another User
then it show me the same User. Why is that ?
Why it having same Response.Write(Session.SessionID) same on each
browser????????//
Is there any seting I have to change.
PLease- Hide quoted text -

- Show quoted text -
 
Carion1,

Do you know if there is a difference between how session.abandon versus
session.removeall affects a gridview?

Thanks,

Ross

carion1 said:
Session.Abandon()

The page could be cached...

You don't drop your current session until either 1) to navigate to
another
application/site; or 2) you close the browser.
When you redirect to the new page, try session.remove(whichever) or
session.removeall.

Ross




Hi every one
I m storing a value in session like
session["User"] = some value
then I am checking evrery page onLoad that if this session["User"] ==
Null then Send to login page.
It does that but If I open a new Browswer window to make another User
then it show me the same User. Why is that ?
Why it having same Response.Write(Session.SessionID) same on each
browser????????//
Is there any seting I have to change.
PLease- Hide quoted text -

- Show quoted text -
 
You don't drop your current session until either 1) to navigate to another
application/site; or 2) you close the browser.
When you redirect to the new page, try session.remove(whichever) or
session.removeall.

Ross


Hi every one
I m storing a value in session like
session["User"] = some value
then I am checking evrery page onLoad that if this session["User"] ==
Null then Send to login page.
It does that but If I open a new Browswer window to make another User
then it show me the same User. Why is that ?
Why it having same Response.Write(Session.SessionID) same on each
browser????????//
Is there any seting I have to change.

Thankx for the reply
But in response I would say that I oped every time a new browser
window then it should create a new session but it doesn't why so
 
Back
Top