Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3494948
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:04:01+00:00 2026-05-18T12:04:01+00:00

basically i have 3 pages, log in page, main page and registration page. My

  • 0

basically i have 3 pages, log in page, main page and registration page.

My users have 2 access level, admin and User.

Admin can go to registration apge, User can’t.

On log in page, there are 2 session, Name and Role.

on page load, I clear both session.

If log in is succeeded, I filled in the values.

My problem is..

I log in as Admin, Session[“Name”]=”admin”; Session[“Role”]=”Admin”;

I go to main page, then to registration page with hyper link. (enable only for admin)

On registration pageload, I check the role. If it is not access, I redirect to main page.

Every page has logged out hyper link.

I will redirect that link to log in page.

As I clear the session values at the loading of log in page, they are all clear.

When I get to Admin page, I copy the URL.

I log out and log in as someone else with User access.

I go to Main page.

I can’t go to registraion page as the hyper link is disable.

But when I paste the URL, it can go to registration page.

Only when I click something, it will redirect to main page as the page_load function is not run at the first time.

Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:04:02+00:00Added an answer on May 18, 2026 at 12:04 pm

    From your explaination it seems there is a high chance this is actually the browser caching the page and not sending a request at all. Try to print the username on the page and see if it will change when you hit the url again. You can also use tools like Firebug, IE9 Dev Tools, Fiddler, etc. to see if request is sent.

    BTW consider using the Membership and Role providers instead of sticking stuff in session ( http://odetocode.com/articles/427.aspx )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page which basically allows an admin user to create manager user
I have a JSF page that is included in other JSF pages (basically a
Basically I have a single page site that scrolls when the user clicks on
I have a login page which will log a user into my webapp based
So I have site list on certain pages that basically just have links to
I would like to add a preprocessor to HTML pages. Basically, I have a
Basically I have a single page on my site that I want any php
In this html I basically have a sidebar-div and a page-div with the header,
I have a page where I basically want an element to 'blink' for a
I have a page that will basically be used to concatenate a bunch of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.