How to verify if a user is logged in? |
Hi RogerMore, not really, turns out CI does it automatically when you use a db table for sessions. If there is a valid session cookie then CI will check it against the db and if there is no match then it will destroy the session cookie and generate a new one. I thought I had to do it myself, CI is taking care of it for me!! Thank you anyway!
Do the one thing you think you cannot do. Fail at it. Try again. Do better the second time. The only people who never tumble are those who never mount the high wire.
|
Messages In This Thread |
How to verify if a user is logged in? - by lexxtoronto - 04-20-2015, 12:51 PM
RE: How to verify if a user is logged in? - by paju89 - 04-20-2015, 02:27 PM
RE: How to verify if a user is logged in? - by lexxtoronto - 04-20-2015, 03:05 PM
RE: How to verify if a user is logged in? - by silentium - 04-20-2015, 03:24 PM
RE: How to verify if a user is logged in? - by lexxtoronto - 04-20-2015, 04:45 PM
RE: How to verify if a user is logged in? - by RogerMore - 04-21-2015, 01:23 AM
RE: How to verify if a user is logged in? - by lexxtoronto - 04-22-2015, 08:14 AM
RE: How to verify if a user is logged in? - by madaan_tushar - 05-25-2015, 11:34 PM
|