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
/printthread.php 16 require_once



UserSpice
Determine if user is within the same session. - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Determine if user is within the same session. (/showthread.php?tid=849)



Determine if user is within the same session. - komodo - 11-23-2017

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


Determine if user is within the same session. - Brandin - 11-23-2017

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.


Determine if user is within the same session. - komodo - 11-29-2017

Hello

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

Komodo


Determine if user is within the same session. - mudmin - 11-30-2017

Awesome. If you'd like to share your solution, I'd love to see what you did.



Determine if user is within the same session. - komodo - 12-04-2017

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.