Click here to Skip to main content
14,549,480 members
Rate this:
Please Sign up or sign in to vote.
See more:

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

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

please help me
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?
Rate this:
Please Sign up or sign in to vote.

Solution 1

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.[^]
Rate this:
Please Sign up or sign in to vote.

Solution 2

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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100