4. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra âMentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
6. HTTP
â˘HTTP is a stateless protocol.
â˘Does not remember what happened between
two consecutive requests.
â˘Even two Requests made by same user are
different for HTTP.
â˘HTTP just processes a client REQUEST and supplies
the server RESPONSE.
7. What is
cookie ?
â˘Cookies are small piece of data
â˘Stored in the users computer.
â˘it stores info about you and your
preferences.
11. It is not limited to remember just our languages.
â˘It can contain time you visited a web site.
â˘Or items in your shopping cart
â˘Or even contain all the links your clicked.
13. To Read Cookie Values
$_COOKIE['CookieName'];
$_REQUEST['CookieName'];
To Destroy a cookie
setcookie("user", "", time()-3600);
14. â˘It is same like cookies
â˘But it stored in the server.
â˘Usually used for handle user info
about one session
â˘Default expire time is 24mnts
What is
session ?
17. Why GET and POST methods?
These are two ways the browser client can send
info to the web server.
18. GET method
â˘It sends only limited amount of data.
â˘Info send using GET method will appear in
browser URL
â˘PHP provides $_GET associative array to access info.
20. POST method
⢠info sent by using POST method is not visible to
users.
â˘does not have any restriction on data size to be sent.
â˘PHP provides $_POST associative array to access
21. example
<?php
if( $_POST["yourname"] || $_POST["yourage"] )
{
echo "Welcome ". $_POST['yourname']. "<br />";
echo "You age is ". $_POST['yourage']. " years.";
exit();
}
?>
<html>
<body>
<form action="<?php $_PHP_SELF ?>" method="POST">
Your Name: <input type="text" name="yourname" />
Your Age: <input type="text" name="yourage" />
<input type="submit" />
</form>
</body>
</html> click ME
23. Want to learn more about programming or Looking to become a good programmer?
Are you wasting time on searching so many contents online?
Do you want to learn things quickly?
Tired of spending huge amount of money to become a Software professional?
Do an online course
@ baabtra.com
We put industry standards to practice. Our structured, activity based courses are so designed
to make a quick, good software professional out of anybody who holds a passion for coding.
24. Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com
25. Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 â 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 â 495 40 25 550
Cafit Square,
Hilite Business Park,
Near Pantheerankavu,
Kozhikode
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
Contact Us