Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to display the last logged in user from the login page

How to display the last logged in user from the login page

Scheduled Pinned Locked Moved ASP.NET
questionhelptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eyungwah
    wrote on last edited by
    #1

    Hello all: I have some question and would like your help. I have created a page call Login.aspx-The user will login from here. If login successfully, the user will directed to default.aspx which is my main page. What I like to accomplish is to have the name of previous logged in person from login.aspx page and display his/her name on the default.aspx page. How do I go about doing this?? Thank you in advance for your help. eyungwah

    F T 2 Replies Last reply
    0
    • E Eyungwah

      Hello all: I have some question and would like your help. I have created a page call Login.aspx-The user will login from here. If login successfully, the user will directed to default.aspx which is my main page. What I like to accomplish is to have the name of previous logged in person from login.aspx page and display his/her name on the default.aspx page. How do I go about doing this?? Thank you in advance for your help. eyungwah

      F Offline
      F Offline
      FireOnMoon
      wrote on last edited by
      #2

      Use cookies for this kind of problem. Save the user name in cookie on login.aspx on successfull login then redirect. And onload event of login.aspx retrieve the value from cookie

      FIRE

      1 Reply Last reply
      0
      • E Eyungwah

        Hello all: I have some question and would like your help. I have created a page call Login.aspx-The user will login from here. If login successfully, the user will directed to default.aspx which is my main page. What I like to accomplish is to have the name of previous logged in person from login.aspx page and display his/her name on the default.aspx page. How do I go about doing this?? Thank you in advance for your help. eyungwah

        T Offline
        T Offline
        The Tigerman
        wrote on last edited by
        #3

        You could store the username in a session variable and then display that information.. <%=Session("Username")%>

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups