Welcome Guest, Not a member yet? Register   Sign In
How to use CI instance outside application?
#2

[eluser]mddd[/eluser]
That kind of script works totally separate from CI. So you have to think of another solution than using a CI instance.
However most 'browsing scripts' have an option to hook into a session to check if they are allowed to 'do their thing'.
If your CI login works via a php session, it should be easy to have your browser check if that session is correct.
For instance if a user logs in, you set $_SESSION['allow_browsing']=1 and in the browser script you check for that.

Note: I am talking about php sessions, not CI sessions because CI's session library works through cookies.
(Which you could also tap into if you wanted, but not quite as easily especially if they are encrypted).


Messages In This Thread
How to use CI instance outside application? - by El Forum - 08-13-2010, 05:04 AM
How to use CI instance outside application? - by El Forum - 08-13-2010, 05:18 AM
How to use CI instance outside application? - by El Forum - 08-13-2010, 05:39 AM
How to use CI instance outside application? - by El Forum - 08-13-2010, 05:45 AM
How to use CI instance outside application? - by El Forum - 08-13-2010, 06:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB