Last post Sep 08, 2014 01:31 PM by codingman
Sep 05, 2014 12:29 AM|codingman|LINK
I have "web1(http:// localhost /web1)" and "web2(http:// localhost /web2)" but I need send session from web1 to web2.
I try to use "sessionstate" in "web.config" with "mode=SQLServer" and "mode=StateServer" that not complete. because I get error is "Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode".
So I need to any method for send session from "web1" to "web2" and then I necesary remain original value in session.
My environment. C#.net 4.0, SQL Server 2008, IIS 7.5
Thank you everybody for interest.
Sep 05, 2014 03:28 AM|AidyF|LINK
You can't transfer session between sites even if it is stored in SQL or the State Server, you'll need to find some other way to transmit the data. You could store the data in your own database somewhere so that you only have a single identifier key to pass
rather than all your actual data. If the two sites are at least sub-domains of each other and can share cookies then you can try something clever with SQL storage mode
Sep 05, 2014 04:13 AM|codingman|LINK
Thank you AidyF for your recommend.
Sep 08, 2014 03:20 AM|nikhil.mokariya|LINK
Please refer this link for the same. you can get your answer.
Sep 08, 2014 01:31 PM|codingman|LINK
Thank you Nikhil Mokariya.