• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cookie management

#1
[eluser]John Murowaniecki[/eluser]
Today we've received a feedback from a client relating an issue about admin login..

..Well, the system is very simple:
- first we create some session tokens and use them as field names on our login form;
- then if you load the page you'll have your tokens saved on your session and these
are the same that we've created before - they aren't change (except if you load the
login form again);
- we have basicly two methods on this controller: login() and auth().
Login: generate tokens and displays the form.
Auth : retrieve form posting and perform the user authentication based on the
previously generated tokens on login()

..Well, this is my code isn't important..
Code:
$j_code = $is_working = TRUE;

..And everything is working fine except the session: they're not setting tokens (for sure: my table `ci_sessions.user_data` is empty). So we run to my firebird resource inspector to see my cookies and they exist, but the user_data is also empty.

So this is the question: What is happening here?

The cookie exists, the session is setted but the user_data is empty.

Our config.php has this configuration..
Code:
$config['cookie_domain'] = "$_SERVER[SERVER_NAME]";
..So we did change to and empty string and everything works fine again - the firebug tells the correct cookie domain and the user_data is there.

..And this is the main question: Why? 'cos we don't know.


Messages In This Thread
Cookie management - by El Forum - 03-23-2012, 06:18 AM
Cookie management - by El Forum - 03-23-2012, 08:50 AM
Cookie management - by El Forum - 03-26-2012, 01:24 PM
Cookie management - by El Forum - 03-26-2012, 02:06 PM
Cookie management - by El Forum - 03-27-2012, 02:07 PM
Cookie management - by El Forum - 06-12-2012, 08:43 PM
Cookie management - by El Forum - 06-13-2012, 03:38 AM
Cookie management - by El Forum - 06-13-2012, 03:48 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.