The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User Sessions, expire time
#13
I had to go back to my original solution, putting Brian's solution in place means that when the session should be expired you get a nasty double load page, since headers had already been sent to page (not sure which since it is really fast) but there was this white screen with black letters showing for an instant, I assume that in a slow connection they will show for a longer time.

The redirect, we do not need to instruct, since the framework itself is self-correcting and will send the page to the default page (index in my case).

The comment Brian put "Otherwise if it “times out” when a user is not logged in, and you try clicking on a secure page, it just does the redirect." I have not experienced this and do not understand clearly what he means. What I have seen is that the 'time out' is measured against the value in the Session, and then it does the destroy.
You could at this point add a normal header redirect (the redirect class is still not available since I put back at the top of the init) and have even more control on where to send the person, it cold be a page designed for logged out people, that is what I have just done.
  Reply


Messages In This Thread
User Sessions, expire time - by aseiras - 09-12-2016, 02:26 PM
User Sessions, expire time - by mudmin - 09-12-2016, 02:39 PM
User Sessions, expire time - by aseiras - 09-12-2016, 02:45 PM
User Sessions, expire time - by mudmin - 09-12-2016, 02:56 PM
User Sessions, expire time - by mudmin - 09-12-2016, 02:57 PM
User Sessions, expire time - by aseiras - 09-12-2016, 04:12 PM
User Sessions, expire time - by mudmin - 09-12-2016, 09:52 PM
User Sessions, expire time - by brian - 09-12-2016, 10:12 PM
User Sessions, expire time - by brian - 09-13-2016, 12:45 PM
User Sessions, expire time - by brian - 09-13-2016, 01:10 PM
User Sessions, expire time - by aseiras - 09-13-2016, 01:26 PM
User Sessions, expire time - by aseiras - 09-13-2016, 01:29 PM
User Sessions, expire time - by aseiras - 09-14-2016, 10:29 AM
User Sessions, expire time - by brian - 09-14-2016, 11:19 AM
User Sessions, expire time - by aseiras - 09-14-2016, 11:33 AM
User Sessions, expire time - by brian - 09-14-2016, 12:06 PM
User Sessions, expire time - by aseiras - 09-14-2016, 12:18 PM
User Sessions, expire time - by brian - 09-14-2016, 12:27 PM
User Sessions, expire time - by aseiras - 09-14-2016, 12:34 PM
User Sessions, expire time - by brian - 09-14-2016, 12:54 PM
User Sessions, expire time - by mudmin - 09-15-2016, 02:34 AM

Forum Jump:


Users browsing this thread: 5 Guest(s)