Click here to Skip to main content
15,911,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

how to maintain session values after browser close? Actualy i want to maintain values added in cart but the thing is that my values getting null after browser close.
If anybody knows how to maintain session values after browser close then pls help.

Thanks in advance.
Posted

Use Profile[^] instead of Session. That will be persisted to the database, which is what you want.
ASP.NET Profile Properties Overview[^]
Defining ASP.NET Profile Properties [^]

You could also use cookies[^] for very small amount of data I guess.
Cookies in ASP.NET[^]
Cookies Overview[^]

Exploring Session in ASP.NET[^]
 
Share this answer
 
v2
You can use outProc session mode.
 
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