Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Can someone give me a complete solution to create a secured space member using sessions and databases, with php5?

I want to create a space member in which once the member is logged, her details session will be stored in database and will be deleted once is logged out.

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2013/05/03
Marouen Sayari
par Marouen Sayari , Senior PHP Programmer and Full-time Freelancer, Zend Certified Engineer , Self-employed

A complete solution won't help you in understanding the "concept". Try doing it on your own instead by implementing the open, close, destroy, write and read handlers and setting them using the session_set_save_handler. Always check the php.net manual as a reference. Good luck

Utilisateur supprimé
par Utilisateur supprimé

login SESSION_START(); $_SESSION['id']=$id; // id it is primary key or or choose identifying element example: email logout SESSION_DESTROY();

Faraaz Rehan Junaidi Mohammed
par Faraaz Rehan Junaidi Mohammed , Research and Development Intern , FewCuts Inc.

To create a space member system that stores user details in a database, you can follow these steps:

  1. Create a database table: You will need to create a database table to store the user's session details. The table should have columns for user ID, session ID, login time, and logout time.

  2. Create a login system: You will need to create a login system that allows users to log in and out of the space member system. When a user logs in, you will need to create a session ID and store the user's ID and session ID in the database table along with the login time.

  3. Store session details: As the user navigates through the member space, you will need to store their session details in the database table. This will include information such as the pages they visit, the actions they take, and any data they submit.

  4. Delete session details: When the user logs out, you will need to delete their session details from the database table. This will ensure that their session data is not retained in the system.

you can use a server-side programming language like PHP or Node.js, along with a database management system like MySQL or PostgreSQL. There are also many web frameworks available that can help you build a member space system quickly and easily, such as Laravel, Django, or Ruby on Rails.

Ahmed Omar
par Ahmed Omar , Site leader , Procter & Gamble

I think you are talking about cloud computing like Citrix xendesktop

More Questions Like This