How can I go to another site without losing the session, and then, for example, after 5 seconds, return to my site? Only I understand Jquery and Codeigniter, and I can not figure out how to implement. In fact, I need to implement auto-surfing, without advertising purposes, just browse sites from the list and return to the original one. Punched through pURL - problems with encoding arise and the structure of the site is lost.

    2 answers 2

    In the CodeIgniter configuration ( application\config\config.php ), find the parameter " sess_expire_on_close " and set the value to TRUE !

     $config['sess_expire_on_close'] = TRUE 

      As I recall, the session is lost when you close the browser. If you "leave" the site (open another site in the same tab), then the session is not lost. And when you return the session continues.