Jump to content

Recommended Posts

Ok, I have to admit.  I'm new to PHP.  Recently, I've been developing a user login system and have looked at many tutorials.  In these tutorials I have noticed that they save the sessions variables, and I don't know why.  The idea of saving the sessions variables completely goes against the definition of the word session.  It becomes more than a session.  If you want to save the user details for the next time they visit the website then would you just not use a cookie?

 

Hey, I'm new to this community, I hope to get a lot from it as well as put a lot back in  :)

Link to comment
https://forums.phpfreaks.com/topic/65370-why-save-sessions/
Share on other sites

Hey, I'm new to this community, I hope to get a lot from it as well as put a lot back in

 

Wecome.

 

Where are they saving said sessions? I'm with you, if you want persistence, you'd normally save them in a cookie.

 

Then again.. you wouldn't really want to save a users complete site customizatiosn within a cookie.

Link to comment
https://forums.phpfreaks.com/topic/65370-why-save-sessions/#findComment-326452
Share on other sites

hi

u r making a login from it after login ur jumping the next page if u want login name and print the name onother page then ur are two way first use database and print the value and another one useing session . session has pass value page 2page untill the session is not expired. e

Link to comment
https://forums.phpfreaks.com/topic/65370-why-save-sessions/#findComment-326458
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.