Session and Cookie Values

The following are session and cookie values assigned within the membership system. These values can be used throughout the system as a way to quickly gather data on the current viewing user. It is highly recommended that developers use sessions to retrieve and store data instead of cookies unless the option of storing data within a session is not feasible for portions of the membership system being worked on.

Sessions are the main way in which data pertaining to a logged in member or anonymous visitor is stored as they are interacting with the site.
  • Session Values:
    • Logged In Members:
      • Hidden = Set to true or false if the member wishes to be hidden from view on the site.
      • LoggedIn = Set to true or false depending if member is logged in.
      • MainCharacter = The id of the member's main character in the database.
      • MemberId = The logged in members id in the database.
    • Visitors
      • NO SESSION DATA IS SET

Cookie values should generally only be refered to as a way to validating and automatically logging in returning members to the site who wished to "remembered" after they have ended their session. It would be safe to assume that most members will not have a cookie available to refer to for stored data. It is recommended instead to use session values for retrieveing stored data pertaining to a member.
  • Cookie Values:
    • Cookie Name: Account
      • Logged In Members:
        • CookieCode = A random strings used as a way to check that the cookie is valid.
        • LoggedIn = Set to true or false depending if member is logged in.
        • MemberId = The logged in members id in the database.
      • Visitors
        • NO COOKIE DATA IS SET

Last edited Mar 20, 2010 at 1:20 AM by jprochazka, version 1

Comments

No comments yet.