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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applications and session data

Status
Not open for further replies.

TheCivic

Programmer
Feb 7, 2006
34
GB
hi everyone,

I am new to asp.net and have built two asp.net applications/wizards that i need to put into my asp application. I know all about asp and asp.net not sharing session data etc, but was wondering why the asp.net ones wont.

I had to open IIS and set both the folders that contain the .NET wizards, to applications. But they are still apart of the DefaultApp pool. But when i transfer from one wizard to the other they dont transfer session variables. Both .NET applications are in different folders as well.

How can i get them the transfer the session data? If i cant, what would be the best way?

Cheers
 

from my understanding (could be wrong!)
...
once you change from one app (folder and subfolders with a web.config in its simplest state) to another app (different set of "main" folders), your session should reset because a different web.config and global.asax should apply.

ive heard session state is a scary unreliable thing since the beginning, so ive avoided it completeley. In its place, i have done response.redirect("other.aspx?id=" & variable) utilizing the query string to pass minimal data that can be looked up in a database.

it can be extended pretty far too, keeping sensitive data out of it is your main concern.

other.aspx?id=1&view=src&sort=desc&source=main

code it out using

variable = Request.QueryString("id");
variable2 = Request.QueryString("view");

and so on
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top