Welcome Guest, Not a member yet? Register   Sign In
How to destroy a session?
#1

[eluser]Sinclair[/eluser]
Hi,

I have a multipage form that uses sessions to store some variables.

My problem... If I run the form one time and then repeat without clean the cookies, gives me some errors... so I think to destroy the session after the form process is complete. But if I try to kill the session with $this->session->sess_destroy(); I got this error:

Code:
A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\acomp_www\system\libraries\Exceptions.php:166)

Filename: codeigniter/Common.php

Line Number: 360

Wich is the best way to clean the cookies with the session library?


Best Regards,
#2

[eluser]Sinclair[/eluser]
Removed the destroy session from the controler to take errors out...

I have found that it works great in Fire Fox, but not in Internet Explorer.

In Internet Explorer only works great if I delete the cookies after each form submission.

Any clue?
#3

[eluser]Sinclair[/eluser]
Stange thing this IE...

In my URL I have a folder with an underscore(_). If I remove the underscore, it works. Smile

Best Regards,




Theme © iAndrew 2016 - Forum software by © MyBB