Welcome Guest, Not a member yet? Register   Sign In
How to see the session encryption in CI
#1

[eluser]Pokhara[/eluser]
hello friends,

How do we check the the session encryption once we set it's value and and enable it in config ?
#2

[eluser]WanWizard[/eluser]
View the cookie in the browser.

If it looks like a long string of random giberish, it's encrypted. If not, you can read the information stored in the cookie.
#3

[eluser]Pokhara[/eluser]
it must appears like http://localhost/welcome/sdfwe675g$%??

i can't see after url or is there a way to echo it ?
#4

[eluser]WanWizard[/eluser]
It is not a URL, it is a cookie.

If your browser doesn't have a default option to view received cookies, you might have to install a plugin to do so. IE has it in the tools menu, for Firefox use the WebDeveloper toolbar.

You can also view the HTTP headers (that how cookies are sent to the browser), or var_dump the $_SERVER array in your code (which contains the received cookie).
#5

[eluser]Pokhara[/eluser]
ok, how does that jibberish url happens after last segment ? i am just curious. I have seen one of my friend doing that in his application.
#6

[eluser]WanWizard[/eluser]
Guess you have to ask your friend.




Theme © iAndrew 2016 - Forum software by © MyBB