automatisch uitloggen na 10 min.

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Senior, Medior and Junior SAP HANA Developer

Vacature details Vakgebied: Software/IT Opleiding: Medior Werklocatie: Veldhoven Vacature ID: 12696 Introductie Our client is the world's leading provider of lithography systems for the semiconductor industry, manufacturing complex machines that are critical to the production of integrated circuits or chips. Our purpose is “unlocking the potential of people and society by pushing technology to new limits”. We do this guided by the principles “Challenge”, “Collaborate” and “Care”. Wat verwachten we van jou? SAP Certified Application Associate - SAP HANA Cloud Modeling (training and/or certification) Bachelor degree or higher Excellent understanding of SAP HANA (2.0 / Cloud), Data Modelling and writing

Bekijk vacature »

Tamara

Tamara

01/05/2009 23:34:00
Quote Anchor link
Goeienavond,

Ik heb een inlogsysteem met sessie, gekoppeld aan mn database. Ik vroeg me af wat de beste oplossing is om iemand automatisch na 10 min. uit te loggen (als hij dus niet actief is geweest in die 10 min)

Ik zag dat het met setcookie() kon, maar dat is natuurlijk clientside.

Kan het ook met een sessie variable?
 
PHP hulp

PHP hulp

29/03/2024 06:43:58
 
Gerben G

Gerben G

01/05/2009 23:37:00
Quote Anchor link
Je kunt in de database de tijd van zijn laatste actie opslaan. En dan bij elke actie kijken of de tijd minder dan 10 minuten geleden is.
 
Afra ca

Afra ca

01/05/2009 23:45:00
Quote Anchor link
Je kan in je php config file instellen na hoeveel seconden een sessie verloopt. Als je inlogsysteem gebasseerd is op sessie variabelen, moet je dan opnieuw inloggen.

edit: ga op zoek naar php.ini , als het goed is in de php install folder, en zoek naar:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
session.cookie_lifetime = 3600


3600 is het aantal seconden dat de sessie geldig is.

Besef me net dat ook dit cookies betreft, maar ook sessies zijn gebasseerd op cookies (sessie_id in cookie)....
Gewijzigd op 01/01/1970 01:00:00 door Afra ca
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.