SteamAuthentication | simple PHP Authentication that enables steam users | Video Game library
kandi X-RAY | SteamAuthentication Summary
kandi X-RAY | SteamAuthentication Summary
SteamAuthentication is a basic set of PHP files that enable users to login using their steam account to view protected content on your website. it creates a session using their steamid as the sessionID and checks for the session when a user visits the page. It also includes a file which allows you to use their profile information such as their avatar and online status. See a demo at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SteamAuthentication
SteamAuthentication Key Features
SteamAuthentication Examples and Code Snippets
Community Discussions
Trending Discussions on SteamAuthentication
QUESTION
I'm using this GitHub Repository to allow users to sign in through Steam.
This repo uses Sessions which lasts only a while, or until the browser is closed, so I need to use cookies in order to keep users logged in for a long period.
After some research, from cookie documentation and questions asked, users, have a username and password and not using a third party to log in.
This is my first time using sessions and cookies, so please bear with me.
This is how the code for log in looks like:
...ANSWER
Answered 2021-Feb-26 at 03:31To construct a true thorough "remember me" feature, you would typically need a database to store a generated user token with an expiration date and any other conditions you might decide you need. The token would then be stored in a cookie with setcookie()
.
But the easiest path forward is to extend the lifetime of the normal PHP session cookie to a time period beyond its default 0
(until browser closed). You can do this with session_set_cookie_params()
, choosing a long lifetime.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SteamAuthentication
Upload the steamauth folder.
change domainname to your domain name.
change apikey to your API-Key from http://steamcommunity.com/dev/apikey
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page