Thread: Web Development, Session Management

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    86

    Web Development, Session Management

    I've been learning some web stuff recently, and one big question on my mind...which surprisingly I couldn't bring right up on a google search (though I'm probably expressing it wrong), is how session state is coordinated within a website project, or even one part of a website project?

    For instance, a session variable can be anything....like Session["Username"], Session["DaUser"], Session["OurEsteemedUser"]. Get what I"m saying? Are there standards within each company to keep these things on the same page, or are common variables built into new web technologies?

    I know this is a very vague question, but hopefully you get my drift.
    I made a pair of "Braille Gloves" which have 6 vibration motors in six finger tips and vibrate in the relevant patterns. I have used this to read stuff while out walking. Given there is a fairly well defined programmer-oriented Braille encoding I should imagine it would work in this situation. Diagrams could be a pain still.

    Note: I am not blind but have learnt Braille fairly easily so for me it works quite well

    Disclaimer: I haven't tried this while driving yet...

  2. #2
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    A simpler method that we use for some of our internal sites is passing a hashed session id along with each link, i.e. index.php?id=wsrtgnsorijknsoijrnosrt (HTTP GET). Then you can look up the session id and details from a database.

    You can do this in a more silent fashion with HTTP POSTs, which the user will not see but will be transferred to the server.

    Note that you always have to be security conscious; you have to verify the session for every page and give the session id an expiration, renew when you go to a different page, etc.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    if you have access to the HTTP headers on both the client and server end, you could store a session id there as well, but if it's a web page intended to be viewed in a browser, that sort of eliminates that possibility.

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    86
    Quote Originally Posted by Epy View Post
    A simpler method that we use for some of our internal sites is passing a hashed session id along with each link, i.e. index.php?id=wsrtgnsorijknsoijrnosrt (HTTP GET). Then you can look up the session id and details from a database.

    You can do this in a more silent fashion with HTTP POSTs, which the user will not see but will be transferred to the server.

    Note that you always have to be security conscious; you have to verify the session for every page and give the session id an expiration, renew when you go to a different page, etc.
    Cool, so the database is where the organization comes in, then. That is, the agreed upon names and allowed parameters for variables belonging to each customer. It's just weird when you are cobbling some little thing together on your own and you are making up variables as you go with no consistency checks other than your ability to keep things straight.
    I made a pair of "Braille Gloves" which have 6 vibration motors in six finger tips and vibrate in the relevant patterns. I have used this to read stuff while out walking. Given there is a fairly well defined programmer-oriented Braille encoding I should imagine it would work in this situation. Diagrams could be a pain still.

    Note: I am not blind but have learnt Braille fairly easily so for me it works quite well

    Disclaimer: I haven't tried this while driving yet...

  5. #5
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    It's just like using variables in programming. The C standard doesn't tell you what you should call your variables. You just make them up as you go along and keep your records straight.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The Multi-Session API
    By rchiu5hk in forum C++ Programming
    Replies: 3
    Last Post: 09-15-2009, 02:44 AM
  2. Context.Session
    By wangtian in forum C# Programming
    Replies: 0
    Last Post: 07-10-2003, 10:27 AM
  3. Session ID
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 10-30-2001, 05:01 AM