Header isn't showing correct for non protected pages

Joined
Jan 21, 2009
Messages
1
Reaction score
0
I have pages in aspx that all use the same header file, some pages are protected and some are not. The text in the header changes based on if a user is logged in or not. Some pages can be viewed if the even if the user is not logged in. The issue I have is that the pages that can be viewed without logging in the header doesn't change if the user is logged in unless they go to another page and come back.

Here are the steps to show my issue:
1. User goes to homepage
2. Homepage shows logged out header
3. User clicks Login on the homepage
4. User is sent to Login page and logs in with valid data
5. User is returned to Homepage since that is where they came from
6. User is displayed the Homepage but the header still shows as if they are not logged in
7. User navigates to another page that is protected and notices the logged in header
8. User clicks on Home which takes them back to the homepage
9. User is redisplayed the homepage with the logged in header

This issue only seems to occur on the pages that don't require a log in. I tried to just do a refresh on the page but that didn't work, it's almost like you have to leave the page and come back to get the right header.


Attached is the code for the header, (sorry the forum wouldn't allow me to put the code right in this box)

Any ideas on how to make the page act like it's supposed to?

Thanks,
Jay
 

Attachments

  • HeaderCode.txt
    1.5 KB · Views: 204

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

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top