This document provides an outline on web engineering topics including session management, cookies management, and login/logout using sessions. It discusses that a session allows storing information in variables across multiple pages on the server-side. Cookies are small files stored on a user's computer that are sent back to the server each time a page is requested that can be used to identify the user. The document also provides code examples for putting values in and reading from sessions, destroying sessions, creating and reading cookies, and deleting cookies. It concludes by noting how to develop a login and logout system using session handling.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
14 views13 pages
Session
This document provides an outline on web engineering topics including session management, cookies management, and login/logout using sessions. It discusses that a session allows storing information in variables across multiple pages on the server-side. Cookies are small files stored on a user's computer that are sent back to the server each time a page is requested that can be used to identify the user. The document also provides code examples for putting values in and reading from sessions, destroying sessions, creating and reading cookies, and deleting cookies. It concludes by noting how to develop a login and logout system using session handling.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13
Web Engineering
By Dr. Ali Saeed
Lecture Outline • Session Management • Cookies Management • Login / Logout using Session Session Management • A session is a way to store information (in variables) to be used across multiple pages. • A session is use to store information on Server side. Session Management • Following code is use for Session Handling in PHP Put values in the session Read values from session Destroy all session variables • Following function is use to destroy all session variables: What is a Cookie? • A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values Cookies Creation and insertion
The "/" means that the cookie is available in entire website (otherwise, select the directory you prefer) Read data from Cookie Delete a Cookie Login and Logout using Session • Develop Login and Logout using Session Handling • Thanks