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

Displaying Session

Status
Not open for further replies.

M8KWR

Programmer
Aug 18, 2004
864
GB
I have a main page with username and password etc.

If a user tries go direct to the other pages, there is code directing them back to the main page, and then displays an error message.

I have done this with using a Session to hold the text i want displaying on the main page.

The problem that i have is that when it directs back to the main page the Session text is not shown until you refresh that page....

What i am trying to do is something simple, and i have done it before without having this issue. But can not seem to find what i am doing wrong.

If a redirect to another page other then the first one that is shown, the session is shown.

Any help would be appreciated, and thanks in advance.
 
provide the code.
also you don't need to mess with session variables for this. within the web.config configure the authentication/authorization nodes for Forms mode. for more information search the web for "asp.net forms authentication"

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I tried the site within firefox and it works how i exepcted it to, so i will put this down to IE not refreshing the page, but using a cache - well this is what i think anyway...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top