Welcome Guest, Not a member yet? Register   Sign In
Sessions - Not Working
#24

(07-03-2015, 01:34 AM)Narf Wrote: Yep ... unless you call session_write_close() prior to doing that redirect, the session cookie is never sent to the browser, because you've already started the output and you can no longer send a header. That's why you shouldn't directly echo from a controller/model/library and always use the views instead.

Cheers Narf, more or less the same as what solutions are on the web, after trying the  
Code:
session_write_close()
before the redirect it didn't seem to work as planned and the session still dropped.

Will look a bit deeper see if I can get it to work.

Thanks
Reply


Messages In This Thread
Sessions - Not Working - by iD30 - 06-25-2015, 09:40 AM
RE: Sessions - Not Working - by Wouter60 - 06-25-2015, 10:34 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 01:40 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 02:22 AM
RE: Sessions - Not Working - by mike7418 - 11-14-2015, 12:29 PM
RE: Sessions - Not Working - by sv3tli0 - 11-15-2015, 02:26 AM
RE: Sessions - Not Working - by mike7418 - 11-15-2015, 04:31 PM
RE: Sessions - Not Working - by Narf - 06-26-2015, 02:59 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 03:04 AM
RE: Sessions - Not Working - by Narf - 06-26-2015, 03:22 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 03:33 AM
RE: Sessions - Not Working - by Narf - 06-26-2015, 04:13 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 05:46 AM
RE: Sessions - Not Working - by Narf - 06-26-2015, 06:46 AM
RE: Sessions - Not Working - by ivantcholakov - 06-26-2015, 05:26 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 05:51 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 07:22 AM
RE: Sessions - Not Working - by Narf - 06-26-2015, 08:38 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 08:11 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 09:30 AM
RE: Sessions - Not Working - by Narf - 06-26-2015, 10:55 AM
RE: Sessions - Not Working - by iD30 - 06-29-2015, 02:15 AM
RE: Sessions - Not Working - by iD30 - 06-26-2015, 09:43 AM
RE: Sessions - Not Working [SOLVED] - by Narf - 06-29-2015, 03:18 AM
RE: [SOLVED] Sessions - Not Working - by iD30 - 07-02-2015, 09:23 AM
RE: Sessions - Not Working - by Narf - 07-03-2015, 01:34 AM
RE: Sessions - Not Working - by iD30 - 07-03-2015, 01:44 AM
RE: Sessions - Not Working - by jvandemerwe - 11-25-2015, 04:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB