Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross Application Session sharing

Status
Not open for further replies.

scoon07

Programmer
Jan 3, 2007
2
US
Hey there,

I have seen some posts about this but nothing quite helped me out.

Here is my scenario: I have a 2 web applications. App A is the parent of App B. Each has their own web.config. I am trying to use SQLServer for state management. What I am hoping to do is for App A to be able to set Session variables for App B. I thought using SQLServer would be a good way to do this, but I just can't seem to find any way of exposing App B's session object to App A. Does anyone have any suggestions for doing this?

Thanks in advance,

scoon
 
I may be off beam here, but why not write the values to a table in SqlServer and then read them back in App B.

I suspect that what you are doing is fundamentally flawed, as what will you do if someone closes App A whilst still working on App B (or if the A session times out?)

Again, I have no idea what you are really trying to achieve, but I suspect that what you are trying to do is fundamentally flawed.

(App A and App B will be running in different processes and contexts on the webserver, so will not be aware of each other.)

If you can give some more context to the issue there may be other ways round it.

K
 
Hey there,

I looked into putting Sessions into sql server but didn't have the time to figure out how to get at the different app's session variables.


App A is what users log into. Once in App A, App B is presented to them in an iframe. There isn't any way for a user to close down one app and not the other.

I suspect the best way is to write a custom SessionStateProvider so that both Apps can have their Sessions in one place. I am mostly curious to hear how individuals have solved similar problems.

Thanks for the input.

scoon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top