Click here to Skip to main content
15,922,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have taken a value in session e.g session(city)="Texas"
and also using another session in website on other pages.
Example:-<br />
On 1st Page :--<br />
<br />
session(city)="Texas"<br />
<br />
 On  2nd Page :--<br />
<br />
On Pageload <br />
Session(user)=""




In Some Page ,if a person log out then it redirect's to the 2nd Page where session(user)=""
but it shows Texas in Label .
So Can i Take more values in session
eg <br />
session(user)<br />
session(city)<br />
session(123) etc 

or we can take only one session in Particular website .
if Anybody know Better on session reply.
Waiting For Reply.......
if Someone don't understand what i ask then also reply ,so i correct my question.
Posted
Updated 24-Jan-13 23:05pm
v2

1 solution

As many as you need (within reason - each session has to stay in the server memory until it expires or is cleared by your code, so if you have a LOT of users, keeping the session to a minimum can be a good idea)

It's a Collection, so you can add as many objects to it as you want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900