matthewhaworth Posted August 17, 2007 Share Posted August 17, 2007 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 More sharing options...
trq Posted August 17, 2007 Share Posted August 17, 2007 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 More sharing options...
beboo002 Posted August 17, 2007 Share Posted August 17, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.