Click here to Skip to main content
14,692,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends...

I have two web application running on same server.
i want to use session of one application into another application(on localhost).
can i do that???

please give me helpful links to learn Sharing of session.

Thanks in advance.
Posted
Updated 14-Mar-15 1:37am
v3

1 solution

You could have found helpful links yourself by just typing 'session subdomain asp.net' on Google[^].
Basically you will need to set domain to your HttpCookie in web.config.
   
Comments
Pratik Bhuva 18-Feb-14 7:45am
   
i have got your point.
i have already searched on google before i have post this here.
can i do that for "localhost".???
Ankur\m/ 18-Feb-14 12:51pm
   
If your localhost urls are like http://localhost/website1, http://localhost/website2
they will already share the cookies as they have same domain - localhost.
Pratik Bhuva 19-Feb-14 2:04am
   
I have found my answer by referring this link...

http://www.codeproject.com/Articles/32545/Exploring-Session-in-ASP-Net

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