943,652 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 6938
  • ASP.NET RSS
Mar 5th, 2008
0

How to pass session variables between two applications in one iis server

Expand Post »
Hi fellas, i got two applications running under the same iis server. I want to pass session variables between these two applications, i.e. authenticate users in one application and allow them access in the other as well. What are my options to achieve this?
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Mar 5th, 2008
0

Re: How to pass session variables between two applications in one iis server

Your easiest and best bet would be to create a transfer page that will read the contents of the current session variable. Then, create a loop that puts down a hidden input field with the id as the name of the session variable, and the value as the session value. Put this within a form and post it to the page on the other application, then loop through and resintate the session variables on the other application.

It's actually quite easy.

Otherwise you will have to change statemodes while many other things.
Last edited by SheSaidImaPregy; Mar 5th, 2008 at 10:08 am.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Mar 5th, 2008
1

Re: How to pass session variables between two applications in one iis server

you can use data base,
from the second application (after authentication has been done) you can query session variable from the browser and check the value of that data from data base.
Reputation Points: 165
Solved Threads: 59
Posting Pro in Training
DangerDev is offline Offline
485 posts
since Jan 2008
Mar 5th, 2008
0

Re: How to pass session variables between two applications in one iis server

Click to Expand / Collapse  Quote originally posted by DangerDev ...
you can use data base,
from the second application (after authentication has been done) you can query session variable from the browser and check the value of that data from data base.
Thanks DangerDev, sounds logical
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Asp.net
Next Thread in ASP.NET Forum Timeline: Better Solution? String Builder? Censor List Function





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC