Welcome Guest, Not a member yet? Register   Sign In
CI fails to create session
#11

[eluser]InsiteFX[/eluser]
Try:
Code:
$config['sess_match_useragent'] = FALSE;
#12

[eluser]zsela[/eluser]
[quote author="InsiteFX" date="1330875759"]Try:
Code:
$config['sess_match_useragent'] = FALSE;
[/quote]

It doesn't have any effect.
#13

[eluser]InsiteFX[/eluser]
This sounds really strange, because I am running CI 2.1.0 and I
have Chrome FireFox and IE9 and sessions are working with all browsers.
#14

[eluser]zsela[/eluser]
Yes, it is very strange.
Even if I disable storing session information in database the behavior is the same. Also I experience the same problem if I try to use a very basic controller like this one:

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

function __construct() {
  parent::__construct();
  
  $this->view_data['base_url'] = base_url();
}

function index() {
  echo 'OK';
}

}

?>

I think I am going crazy...
#15

[eluser]Molchy[/eluser]
[quote author="zsela" date="1330968863"]Yes, it is very strange.
Even if I disable storing session information in database the behavior is the same. Also I experience the same problem if I try to use a very basic controller like this one:

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

function __construct() {
  parent::__construct();
  
  $this->view_data['base_url'] = base_url();
}

function index() {
  echo 'OK';
}

}

?>

I think I am going crazy...[/quote]

U should specify:
- CI Version
- Using HMVC and if which one or not
- Using custom made Session class and which one if?
- Did u try using and custom made session class which works with DB ?
#16

[eluser]InsiteFX[/eluser]
IE and Chrome you have to tell the browsers to use cookies in the internet options!
#17

[eluser]CroNiX[/eluser]
Which most regular users of these browsers don't know how to do.
#18

[eluser]InsiteFX[/eluser]
Right that's why they stink! lol Chrome is not as bad as IE.

IE you have to tell it to allow session cookies
#19

[eluser]zsela[/eluser]
@Denis Molan: now I use CI 2.1, no HMVC and no custom session class, just the CI default. I didn't try to use a custom made session class yet.

@InsiteFX: as I wrote before, the whole CI session handling was working one day, but on the other day it didn't. Perhaps I made some changes in the code (maybe accidentally) which ruined the working session handling.

I guess I have to download an unspoilt CI package and try if that works. Then I can put my own code into that step by step.
#20

[eluser]Molchy[/eluser]
[quote author="zsela" date="1331139984"]@Denis Molan: now I use CI 2.1, no HMVC and no custom session class, just the CI default. I didn't try to use a custom made session class yet.

@InsiteFX: as I wrote before, the whole CI session handling was working one day, but on the other day it didn't. Perhaps I made some changes in the code (maybe accidentally) which ruined the working session handling.

I guess I have to download an unspoilt CI package and try if that works. Then I can put my own code into that step by step. [/quote]

Yes check ur logic step by step as u said code mistake can be the couse ... Good luck




Theme © iAndrew 2016 - Forum software by © MyBB