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,
VishalBoth sites must have the same machineKey in their web.config. It cannot be
"autogenerate".
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Vishal" wrote:
Quote:
Originally Posted by
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
>
>
>
0 comments:
Post a Comment