The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
Determine if user is within the same session.
#1
Hello

I would like to ask if and how you can determine in US 4.2 if a logged in user is within the same session?
Does a session end only with a logout?

Thank you!
komodo
  Reply
#2
Sessions end after a session period which I think is set in init.php. This is also handled by the values set in the server.
  Reply
#3
Hello

Thank you very much for your answer. I have solved my problem via session variables.

Komodo
  Reply
#4
Awesome. If you'd like to share your solution, I'd love to see what you did.
  Reply
#5
I have programmed a simple forum software to go along with userspice and I use session variables to determine if a topic has been viewed in the same session so that the view count only increases once per session.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)