Welcome Guest, Not a member yet? Register   Sign In
Sessions not secured
#1

[eluser]Beginers[/eluser]
Hi ALL, Im developing a website containing authentication and stored it in a session. When i run the firebug on the browser it displays my session varibles and its data. What should i do to make this very secure without storing it in the cookies?

#2

[eluser]noslen1[/eluser]
Hi,
You should set in your application/config/config.php :
Code:
$config['encryption_key'] // line 227
$config['sess_encrypt_cookie'] = TRUE; // line 250

See an encryption key generator here
#3

[eluser]LuckyFella73[/eluser]
And save session data in database!

Code:
// config.php
$config['sess_use_database'] = TRUE;
#4

[eluser]Beginers[/eluser]
@noslen1 and LuckyFella73: should i set my encryption key to sha1? or md5? or ill just leave it empty?
#5

[eluser]Beginers[/eluser]
@noslen1 and LuckyFella73: HI, thank you so much it works! God Bless You All.
#6

[eluser]PhilTem[/eluser]
You can set your encryption key to whatever you want. It should however be a rather long and random string (something like you may get from

Code:
random_string('unique'); # @see CI::string_helper

should do the work pretty securely Wink )




Theme © iAndrew 2016 - Forum software by © MyBB