Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

please help me for share a session between two web applications
i have app1 asp.net mvc appliction
which have its session value.

now i want to access app1 session from app2 without sql server

please help me
Posted
Comments
DamithSL 11-Nov-14 3:52am    
if you explain your problem clearly someone may provide better approach to solve this issue (any reason for doing so? what kind of data you storing in the session)
Ankur\m/ 11-Nov-14 3:57am    
How are you storing your session? InProc or SQL / State server? Are the two applications in same domain?

I don't think it's a good idea to share session between two web applications. Every web application runs within it's own process and has it's boundaries which are there for a reason.

I would suggest you to look at this article on MSDN to see the possibilities with distributed caching.

http://msdn.microsoft.com/en-us/magazine/dd861287.aspx[^]
 
Share this answer
 
 
Share this answer
 
v2
Comments
sharmarun 11-Nov-14 3:50am    
i have an idea for above
can we access session value using service
service will access session of app1 in to aap2
is it good idea???
Mathew Soji 11-Nov-14 4:44am    
If it helps your purpose , you can give a try.
But not recommended unless there is a justifiable need.

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