Session State

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
 
R

Ross Culver

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
 
C

carion1

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 -
 
R

Ross Culver

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 -
 
L

lalit

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top