Sessions What is it

by Michael M
When we were doing the project this past week I heard a bit about sessions and I really did not get what it was all about so that is what I am going to do my article abut this week so I can learn a little more about what session is and what it is all about. Session is kind of like a cookie but is actually not stored on the users browser like a cookie would do. A cookie can keep a lot of information such as user name and password so when you use session it does not keep the information. It is like a token it alles access and passing of information while the user has the browser open. But once you close the browser you will lose the session and will have to re log in when you come back to the site because your information is not stored on the computer.

During this past week we did not learn much. On Monday we had the day off from school because of Memorial Day and we went to class on Wednesday and learned a little bit about the project. The professor went over how the log-in would work and it kind of would tie in with my blog this week and session. Especially because it has to tie in with the user and without session you wouldn’t be able to view the web page the way you want.

The reason I wanted to learn about this subject is because it is something that I didn’t understand very well when it came to the project and I wanted to make sure that I understood it more now. I though originally that when session ran it was keeping tract like a cookie does. But now that I know that is not what it is doing it made this blog productive and allowed me to learn something new.

Bradley, A. (2011) The difference between Cookies and Sessions, Retrieved June 13, 2012, from

http://php.about.com/od/learnphp/qt/session_cookie.htm

6 thoughts on “Sessions What is it

  • June 3, 2012 at 11:49 pm
    Permalink

    Interesting topic. I had no idea what a session is, and learned something new after reading your article.Since it’s similar to a cookie, I wonder what are the security concerns, and if it’s hidden in a users computer like cookies are.

  • June 3, 2012 at 11:57 pm
    Permalink

    Nice article! I was also still unsure about what sessions exactly were, but your article helped make it a little clearer. From my understanding from your article, it’s like a ticket to a concert. The ticket (session) keeps track of information for that concert (seat, date, time, etc…) and “allows access” like you said, but once you leave the concert (close the browser), your ticket is no longer valid. You would have/need a different ticket for the next time you go to a concert. Thanks for posting!

  • June 4, 2012 at 12:05 am
    Permalink

    I always thought a session was a bigger cookie in a way. But this clarifies things more, and the comparison with concert tickets that Giselle posted about made things even more clearer. Thanks for the informational post.

  • June 4, 2012 at 12:08 am
    Permalink

    Nice article, I guess a accurate of a session would be the memory in our computer where everything get stored on there when the system is on and then erases everything when the system shut down while the hard drive still retain the permanent copy of the information.

  • June 4, 2012 at 1:11 am
    Permalink

    I never really thought of that until I read your article. I’m glad I did and I plan to look into more now. Knowing the difference between cookies and tokens is important because some of us might be into making apps and websites which will end up giving us a choice between using those two. I also agree that Gisselle’s post was able to push my understanding of the whole thing over the point of getting it. Thanks for your insight and for those who replied to your post that were able to expand on your topic and help all of understand the whole blog topic a little more.

  • June 4, 2012 at 9:54 am
    Permalink

    Very good article. I think it is good to know how a session actually works when you are logging into a website, and knowing that your information isn’t stored locally.

Comments are closed.