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. The best way to manage user session ?

The best way to manage user session ?

Scheduled Pinned Locked Moved Web Development
helpquestion
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.
  • T Offline
    T Offline
    TPN
    wrote on last edited by
    #1

    Can anyone help to show me the best way to manage user session. I am using the Session object to store user session after user log in but I see that it not good and not stable. I am starting with ASP so that I do not have enough experience. Thanks for any helps.

    T 1 Reply Last reply
    0
    • T TPN

      Can anyone help to show me the best way to manage user session. I am using the Session object to store user session after user log in but I see that it not good and not stable. I am starting with ASP so that I do not have enough experience. Thanks for any helps.

      T Offline
      T Offline
      Thesisus
      wrote on last edited by
      #2

      I would try to use cookies instead of session vars if possile. Now cookies can be a hassel too, but it is far more scalible. Fear not my insanity, fear the mind it protects.

      T F 2 Replies Last reply
      0
      • T Thesisus

        I would try to use cookies instead of session vars if possile. Now cookies can be a hassel too, but it is far more scalible. Fear not my insanity, fear the mind it protects.

        T Offline
        T Offline
        TPN
        wrote on last edited by
        #3

        What will happen if the browser is disabled to use cookies?

        1 Reply Last reply
        0
        • T Thesisus

          I would try to use cookies instead of session vars if possile. Now cookies can be a hassel too, but it is far more scalible. Fear not my insanity, fear the mind it protects.

          F Offline
          F Offline
          Florin Ochiana
          wrote on last edited by
          #4

          You have to use a combination of 3 things: - database; - session vars; - cookies You can use cookies to leave some portion of the data in the users computer but for a session you wouldn't have to rely on persistent cookies. You should use per session cookies (see this option in Internet Options in IE) just to store an SID (session id) and the rest of the variables should be stored in the db. In every page you will get the sid, query the db and get all the variables you need for that session. It's even secured this way. ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.

          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