Maintaining Session between 2 sites

V

Vishal

Hello,

I have 2 sites running with different domain names.
I want to share the session between these 2 sites. Both uses same SQL server
database.

I have enabled the SQL server session state but it does not maintain the
same state. When i looked in the database i found that it create 2 session
IDs for each site. However i got the same id in .NET here is the value
stored in ther database

For Site 1 Session ID = t5vwe3m0q0oxc3af2blamknn00000001
For Site 2 Session ID = t5vwe3m0q0oxc3af2blamknn00000002

If i Response.Write thye session ID from applications it shows me same in
bot i.e. t5vwe3m0q0oxc3af2blamknn.

Am i missing anything?

Regards,
Vishal
 
G

Guest

Both sites must have the same machineKey in their web.config. It cannot be
"autogenerate".
Peter
 

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,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top