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. Session Management

Session Management

Scheduled Pinned Locked Moved ASP.NET
csharp
4 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.
  • R Offline
    R Offline
    RK_2000
    wrote on last edited by
    #1

    I have read up on .Net Session Management a bit lately and I was curious if there are any good examples of its usage kicking around anywhere. Basically I am looking for various ways that people approach a login form and the userid once the user has loggged in..There are some obvious easy solutions, but I was wondering if there are any mores subtle ways and approaches that I may not know about or any intricacies that one may have to watch for.

    M V 2 Replies Last reply
    0
    • R RK_2000

      I have read up on .Net Session Management a bit lately and I was curious if there are any good examples of its usage kicking around anywhere. Basically I am looking for various ways that people approach a login form and the userid once the user has loggged in..There are some obvious easy solutions, but I was wondering if there are any mores subtle ways and approaches that I may not know about or any intricacies that one may have to watch for.

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      There is better way than using session.You can change your way of authentication from WINDOWS mode to FORMS mode.Chane that tag to something like this: Then when user login you can use 'FormsAuthentication.SetAuthCookie( "username", true );'. FormsAuthentication class is very useful class for this purpose.And when you want to get user name you can do this: Context.User.Identity.Name Hope this help you.

      R 1 Reply Last reply
      0
      • M Mazdak

        There is better way than using session.You can change your way of authentication from WINDOWS mode to FORMS mode.Chane that tag to something like this: Then when user login you can use 'FormsAuthentication.SetAuthCookie( "username", true );'. FormsAuthentication class is very useful class for this purpose.And when you want to get user name you can do this: Context.User.Identity.Name Hope this help you.

        R Offline
        R Offline
        RK_2000
        wrote on last edited by
        #3

        thanks

        1 Reply Last reply
        0
        • R RK_2000

          I have read up on .Net Session Management a bit lately and I was curious if there are any good examples of its usage kicking around anywhere. Basically I am looking for various ways that people approach a login form and the userid once the user has loggged in..There are some obvious easy solutions, but I was wondering if there are any mores subtle ways and approaches that I may not know about or any intricacies that one may have to watch for.

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          Hi, Sessions are managed in 3 distinct different ways: (*)InProc (*)ASP.NET Session State Service (*)MSSQL Server Authentication procedures are of 3 different ways: (*)Windows (*)Forms (*)Passport (with Passport SDK installed and configured) Hope this is clear? Deepak Deepak Kumar Vasudevan http://deepak.portland.co.uk/

          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