Help me plz. About session in ASP.NET.

S

Shige

This kinda puzzle me. I was trying to pass a piece of information from
page to page, so i use session. It works fine until i created
directories to organize my pages.

Say, from "http://Appz/main.aspx" navigate to "http://Appz/page2.aspx",
it works.

But, if from "http://Appz/main.aspx" navigate to
"http://Appz/dir1/page2.aspx", at page2.aspx, it no longer able to get
the session set by main.aspx.

I use Session.Add("userid", 1) to set the session and use
Session.Contents.Item("userid") to retrieve the value. How should i
maintain this kind of session?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top