Welcome Guest, Not a member yet? Register   Sign In
Getting the view name of the referring url
#10

[eluser]Haloperidol[/eluser]
[quote author="adaykin" date="1246613510"]I know but I would like to avoid using it except for authentication.[/quote]

Theres absolutely no reason to not use sessions. Sometimes people confuse it with variables stored in cookies, maybe thats what makes you say that? Just to be sure, when youre using sessions it looks something like this:
1. user connects to your site
2. site checks if the user has a live session associated with him (no need to login or anything, if the user has a live session id the browser transfers it in the http request header)
3. if not, a session is created for the user with a unique id
4. only this id is transferred to the user in a cookie (in the http response header)
5. from now on every $_SESSION ($this->session->userdata or ->flashdata etc) is stored on the server side.

The user has absolutely no control over it (except he can block cookies altogether), cant change nor view the session variables associated with his id, so its safe. Codeigniter also checks for the user agent by default and can be configured to also check for the ip before accepting session ids from a cookie so its quite hard to hijack a session.

As someone already said, youre probably issuing session ids already not even knowing it Smile

Theres a very nice explanation about sessions: http://www.talkphp.com/general/1077-unde...ssion.html


Messages In This Thread
Getting the view name of the referring url - by El Forum - 07-01-2009, 06:33 PM
Getting the view name of the referring url - by El Forum - 07-01-2009, 08:22 PM
Getting the view name of the referring url - by El Forum - 07-01-2009, 08:30 PM
Getting the view name of the referring url - by El Forum - 07-02-2009, 08:06 PM
Getting the view name of the referring url - by El Forum - 07-02-2009, 09:10 PM
Getting the view name of the referring url - by El Forum - 07-02-2009, 10:05 PM
Getting the view name of the referring url - by El Forum - 07-02-2009, 10:13 PM
Getting the view name of the referring url - by El Forum - 07-02-2009, 10:31 PM
Getting the view name of the referring url - by El Forum - 07-02-2009, 10:37 PM
Getting the view name of the referring url - by El Forum - 07-03-2009, 04:39 AM
Getting the view name of the referring url - by El Forum - 07-03-2009, 10:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB