josantonius / php-session Goto Github PK
View Code? Open in Web Editor NEWPHP library for handling sessions
Home Page: https://josantonius.dev
License: MIT License
PHP library for handling sessions
Home Page: https://josantonius.dev
License: MIT License
Hello,
At line 79 of the file src/Session.php
, there is the set
function with the $value parameter which is type-hinted as a string with a default of (bool) false
. This causes an issue I guess
Thanks !
Hi There,
I am looking to use this library in a web application that would be running for like the next ten years. Is this project still being maintained?
Thanks
Hi, when installed through composer and then tried to use like stated in the readme:
use josantonius\Session\Session;
$session = new Session();
It will not find the class, since the namespace is capitalized and should read:
use Josantonius\Session\Session;
Otherwise great work
When instantiating the object, an expiration time is established: For example.
Session::init($lifeTime);
I can also instantiate without expiration date and the session expires until it is destroyed:
Session::destroy($key, $prefix);
Well, I have a system that validates some parameters to access the user control panel and that allows only one login per user, that is, if someone else accesses from another computer, all previous sessions are destroyed and only the most recent one remains active.
The problem is: I do not want the session to be destroyed after a certain time AFTER creating it, rather I want it to be destroyed after a period of inactivity, therefore, what I need is that, every time the user validation is done refresh or re-add the 3600 seconds back to that already active session.
How could I do it?
Thanks for the help.
P.S. I am using Middlewares
Hi, i have a question.
Can you create a method with name "has" ? This method check if the key is isset in session.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.