Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
loosing session variable
Old 03-15-2006, 09:18 AM loosing session variable
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
Hi all.
I have a problem.

Im setting a session variable and then redirecting to a virual directory.

I can't see the session variable in the virtual directory however,

I can see the session variable in the root directory or others that are no0t virtual

Could some one please explain why thi smight be as it is a real pain.

cheers

Steve
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 03-15-2006, 11:24 AM Re: loosing session variable
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
I think it's because the virtual directory is set up as a different application to the one you're redirecting from. Since session data is stored on a per-application basis, you can't access one application's session data from another one.

Try setting the Application Name of the virtual directory in IIS to the same as the one you're calling from (That is, if they are both logically the same application) and restart IIS.

Otherwise, find some other way of transfering the data (Query string, post data, cookie...)
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 03-15-2006, 11:45 AM Re: loosing session variable
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
great thankyou. In lamen terms as not entirely sure what is going on, I have changed my previously defined VIRTUAL directory to a APPLICATION in IIS.
All seems to be working fine now.
thank you
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to loosing session variable
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11326 seconds with 12 queries