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,


Messages In This Thread
How to destroy a session? - by El Forum - 02-21-2010, 03:09 PM
How to destroy a session? - by El Forum - 02-21-2010, 03:45 PM
How to destroy a session? - by El Forum - 02-21-2010, 04:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB