Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 21, 2012 09:30 AM by giop
Member
92 Points
33 Posts
Feb 21, 2012 06:22 AM|LINK
Hello,
I have two web applications (asp.net) hosted on IIS (same IIS), both applications stores sessions in sql server(same sql server).
How can i read a session from first application in second application ?
Thanks
378 Points
81 Posts
Feb 21, 2012 08:18 AM|LINK
Use SessionState Provider : http://msdn.microsoft.com/en-us/library/aa478952.aspx
Feb 21, 2012 09:21 AM|LINK
this link shows general information on state storage, but i have a special case ( note i am using .Net 4.0)
Feb 21, 2012 09:30 AM|LINK
You can use, the sessionState, in mode SQL Server, to share sessions between two servers.
If you have your own session store model, you can create your own session state provider.
Cf this link who explains with sample : http://blogs.lessthandot.com/index.php/WebDev/ServerProgramming/ASPNET/sharing-asp-net-session-state-between-ap
I hope I understand your issue.
Rabih Matar
Member
92 Points
33 Posts
Read sessions between two applications hosted on IIS
Feb 21, 2012 06:22 AM|LINK
Hello,
I have two web applications (asp.net) hosted on IIS (same IIS), both applications stores sessions in sql server(same sql server).
How can i read a session from first application in second application ?
Thanks
giop
Member
378 Points
81 Posts
Re: Read sessions between two applications hosted on IIS
Feb 21, 2012 08:18 AM|LINK
Use SessionState Provider : http://msdn.microsoft.com/en-us/library/aa478952.aspx
Please Mark as Answer if it helps :)
Rabih Matar
Member
92 Points
33 Posts
Re: Read sessions between two applications hosted on IIS
Feb 21, 2012 09:21 AM|LINK
this link shows general information on state storage, but i have a special case ( note i am using .Net 4.0)
giop
Member
378 Points
81 Posts
Re: Read sessions between two applications hosted on IIS
Feb 21, 2012 09:30 AM|LINK
You can use, the sessionState, in mode SQL Server, to share sessions between two servers.
If you have your own session store model, you can create your own session state provider.
Cf this link who explains with sample : http://blogs.lessthandot.com/index.php/WebDev/ServerProgramming/ASPNET/sharing-asp-net-session-state-between-ap
I hope I understand your issue.
Please Mark as Answer if it helps :)