Welcome Guest, Not a member yet? Register   Sign In
Session / Login help
#1

[eluser]gbd_dee[/eluser]
Im new to CI. I want to restrict views to logged in members of my site. Im currently using session class but not sure if its working correctly. When I destroy the session I still have access to restricted content. Can someone go into detail on how I would code this correctly.
Every user has a profile page (only the logged in user can access its own person profile information/page)
Profile controller

Basically I want to only allow a session to be active for 30 minutes without activity, if a window or tab is closed I want the user to have to login again.

I need a code snippet that I add to every view that I want protect from non logged in members. Thanks in advance


Messages In This Thread
Session / Login help - by El Forum - 04-30-2012, 03:13 PM
Session / Login help - by El Forum - 04-30-2012, 03:14 PM
Session / Login help - by El Forum - 04-30-2012, 03:18 PM
Session / Login help - by El Forum - 04-30-2012, 03:23 PM
Session / Login help - by El Forum - 04-30-2012, 03:30 PM
Session / Login help - by El Forum - 04-30-2012, 06:18 PM
Session / Login help - by El Forum - 04-30-2012, 06:19 PM
Session / Login help - by El Forum - 04-30-2012, 06:27 PM
Session / Login help - by El Forum - 04-30-2012, 07:38 PM
Session / Login help - by El Forum - 04-30-2012, 10:18 PM
Session / Login help - by El Forum - 04-30-2012, 10:19 PM
Session / Login help - by El Forum - 04-30-2012, 10:20 PM
Session / Login help - by El Forum - 04-30-2012, 10:23 PM
Session / Login help - by El Forum - 04-30-2012, 11:18 PM
Session / Login help - by El Forum - 05-01-2012, 02:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB