General Community > Scripting Help
How Do I Keep Users Logged In Throughout My Site with PHP?
(1/1)
Joe_:
I am trying to find out what the best (or the standard) way of maintaining a user's session is after they log in.
For example, when a user logs into my website, they are logged in until they move to a different page. How can I keep them logged in throughout my website?
I'm new to PHP so I need some help..Thanks!
Ricky.:
You can go for cookie based as well php session based, however preferred way is php sessions. For small websites and project, php's native session handling is good however, for large websites, you can use mysql based session management along with some caching mechanism etc.
Start reading this : php sessions.
Kays:
Hi, see if any of these link are of assistance
SSI Readme
How do I integrate SMF into my PHP coded website?
How to use the SMF user system outside of SMF
Ricky.:
And I thought he is asking about general PHP since he asked in scripting section not in smf coding section.
Kays:
Well the question is pretty unspecific without too many details. I'm assuming that SMF is part of the site and it's usually easier to incorporate SMF's method of handling sessions into a site. Rather than trying to get SMF to do things it don't like to do. SMF doesn't always play nicely with regular sessions.:)
Navigation
[0] Message Index
Go to full version