@skatee41 You can't. If you want to set the time until expiration, you must use a cookie. The session expires when you disconnect from the respective page.
@aviramster I used PHP6 and MYSQL 5 by Larry Ullman, very good... got me a very good understanding of the basics and even some of the intermediates...
@riteshmlk uhm gues to make functions where you can for example delete users from a userdatabase and make those visible only for people who have a 1 or 0 on a specific place of a userdatabase
Hey, great tutorial. I was wondering if you could make a vid on how to make a session like when you open the page it tells the users that are on. I.E: Users online: Jack, Mike, Alex
In the past 3 months, I have gone from not knowing what PHP is to building a LAMP and using PHP and MySQL to build a server and website for our internal network at my job. Your videos have been a huge part of my fast learning, and I am eternally grateful for that!
I must say you are BY FAR the most intelligent and well spoken person who teaches PHP and web design. I went from having no idea how to make a database or use PHP to being able to send secure emails and create login/registration forms. Thank you for all the work you've put into teaching everyone.
I am making a session in html and when i put my php inside html when i look at the source i can see the php tags. Is there way of hiding the source or should i just make cookies?
"I've a data submit page(submit.html), i can submit data such name,age,email,comment etc. And I also display that in another page(display.php) , using php mysql code". now my qs are....
i. I want to log in to display data, what should i do?
My answers: first time i create user and password table, write code(php,mysql etc) for log in(log_in.php). then what I do? how I will make relation between display.php and log_in.php page? etc
Alex, could you do a tutorial on sessions where your actually doing it in a project, say a login form from your other tutorial, logging in to a message board.
hey i can not get my session things working. I am trying to log a person on and then use sessions to remember user name and password. Could i send code for check?
why is i use the $_session['username']; for changing password, it does'nt work?..it always tell that undefined index: username but i always declare my username correctly in my index page, login page also in logout page..
Nice video. I'm a big fan of PHP Sessions when it comes to security. Btw, what screen recording software do you use? I love the amazing quality despite not using the built-in YouTube 'HQ" button. How do you fit the whole window into the screen record? Thanks. Again great video!! PHP rulezzz!!!!
Comment removed
azsportza 1 month ago
how to logout a particular user
dpramod1 1 month ago
thanks for the vids
jimmykim808 2 months ago
good vedio thank you
MrLODEX 2 months ago in playlist php vedio
awesome...
newkool100 2 months ago
Hi! first i wanna say, your tutorials is BEST!!
and i woundred: "How do i set how long a SESSION would be ?" like 1 hour 2 hours.
Please help :)
skatee41 3 months ago
@skatee41 You can't. If you want to set the time until expiration, you must use a cookie. The session expires when you disconnect from the respective page.
dawgalexify 1 month ago
where are sessions stored? i mean if you don't close the browser.
martmelee 3 months ago
i got session in 1 file and trying to echo it in another file but it doesn't work ,help
hemagoku 4 months ago
Comment removed
mrwaeta1 5 months ago
This has been flagged as spam show
Alex, you rock man. If coding was like the music, you would have a lot of fans! Thank you for all your tutorials!
wallflips 5 months ago
Alex, you rock man. If coding was like the music, you would have a lot of fans! Thank you for all your tutorials!
wallflips 5 months ago
Hi ,need a PHP exercises book or website.
thanks
aviramster 6 months ago in playlist Basics
@aviramster I used PHP6 and MYSQL 5 by Larry Ullman, very good... got me a very good understanding of the basics and even some of the intermediates...
Nickamsweet 5 months ago
& i wanna ask dat how i can give different admin different level of access
riteshmlk 6 months ago
@riteshmlk uhm gues to make functions where you can for example delete users from a userdatabase and make those visible only for people who have a 1 or 0 on a specific place of a userdatabase
aljodewi 4 months ago
its very good to understand the basics of session
but i think some thing more can be done to explain the practicle use of session
i mean you should make us understand by example of a project.....
thanks a lot
riteshmlk 6 months ago
mmmm coookies..
purplepidge 6 months ago
I am getting the following error
Notice: Undefined index: name in C:\xampp\htdocs\session.php on line 10
muzzy4friends 7 months ago
sir
becouse of you now am a small php developer
thanks a lot god bluss you
i always use to watch ur tutorial only also i'm recommending to my friends who all are intrested to learn php
you will rech the top of the nation one more time thanks alot
by
abdul vahab
from bangalore india
abdulvahab232 7 months ago
Quick and to the point! awesome! Thanks man!
koogorah 7 months ago
Hey, great tutorial. I was wondering if you could make a vid on how to make a session like when you open the page it tells the users that are on. I.E: Users online: Jack, Mike, Alex
Thanks
killman2639 8 months ago
In the past 3 months, I have gone from not knowing what PHP is to building a LAMP and using PHP and MySQL to build a server and website for our internal network at my job. Your videos have been a huge part of my fast learning, and I am eternally grateful for that!
evhwolfgang2003 8 months ago
Thank you very much!
iazva 9 months ago
thank you, so simple and clear!
ScottCioffiDotCom 9 months ago
thanks..its look easy.
oozeanbu 9 months ago
I must say you are BY FAR the most intelligent and well spoken person who teaches PHP and web design. I went from having no idea how to make a database or use PHP to being able to send secure emails and create login/registration forms. Thank you for all the work you've put into teaching everyone.
JSunJShineR1 10 months ago 3
you are the best man.....you keep things so much simple that an average learner like me also grabbing the concept easily...awesome...
MrPaksoft2009 10 months ago
you are absolutely awesome!
7Mehtab 10 months ago
This will be so helpful for my project. Thanks alot. Keep it up
jgat08 11 months ago
Comment removed
liamsdomain 11 months ago
Learning PHP is easy, following the changes is tough
samiwistler 1 year ago
thnx dude^^ you give us a better explaination~ more power dude. ROCK ON! i really need to master PHP and MYSQL
earljohn3ric 1 year ago
Comment removed
AshleyMcGowan1 1 year ago
Comment removed
AshleyMcGowan1 1 year ago
Thanks for this video-tutorial.
iFhernd 1 year ago
Alex, Can you extend the Explanation related to session and session id?
Your voice is very good and self explaining about your Personality!
michaelcorelone 1 year ago
I am making a session in html and when i put my php inside html when i look at the source i can see the php tags. Is there way of hiding the source or should i just make cookies?
enviidakid 1 year ago
nice video
S3bbe101 1 year ago
thanks, but my qs are?
"I've a data submit page(submit.html), i can submit data such name,age,email,comment etc. And I also display that in another page(display.php) , using php mysql code". now my qs are....
i. I want to log in to display data, what should i do?
My answers: first time i create user and password table, write code(php,mysql etc) for log in(log_in.php). then what I do? how I will make relation between display.php and log_in.php page? etc
thanks for reading my qs.
bdliton 1 year ago
Awesome!! I love your tutorial!! And your presentation is very easy to understand. Fantastic!!
The3bigmac 1 year ago
Alex, could you do a tutorial on sessions where your actually doing it in a project, say a login form from your other tutorial, logging in to a message board.
dashbyictfd 1 year ago
Excellent tutorials. Very simple and understandable. Thank you Alex.
adriasoft 1 year ago
It was very useful dude Thankx
zainslasher 1 year ago
thanks very much , GOD bless you
egyptsmina 2 years ago
thank u Alex .. realy ur tutorials is Very good and helpful .. Good Luck
devPHP12 2 years ago
hey i can not get my session things working. I am trying to log a person on and then use sessions to remember user name and password. Could i send code for check?
tombslasher 2 years ago
why is i use the $_session['username']; for changing password, it does'nt work?..it always tell that undefined index: username but i always declare my username correctly in my index page, login page also in logout page..
paulmariz 2 years ago
you are a great teacher.I am new to PHP and your video tutorials are extremely helpful...thank you.
deepakmaharaj 2 years ago
man this is super helpful, thanks.
Xacur2 2 years ago
Thanks a lot My Teacher!
I enjoyed this lesson.
almnsuri 2 years ago
Thanks.
MejJalTok 2 years ago
thanks lashtal, i understand now
Warrlarrd 2 years ago 6
Damn thanks a lot. Everytime i looked at one of your videos, i quickly understood.
Better than all crapy books out there.
You MUST win an award, thanks for your work.
+1 the last comment.
conscofd 2 years ago 49
You're welcome! I'm so glad my tutorials have helped you!
phpacademy 2 years ago 14
Alex, Can you extend the Explanation related to session and session id?
Your voice is very good and self explaining about your Personality!
michaelcorelone 1 year ago
@conscofd Im agree with you!! I love you Alex from PHP Acadamy!! XD
Asalazarllamas 10 months ago
its amazing how much you know about php alex
rosswilliamson85 3 weeks ago
alex is the best, f... the rest.
xjih78 2 years ago 4
Nice video. I'm a big fan of PHP Sessions when it comes to security. Btw, what screen recording software do you use? I love the amazing quality despite not using the built-in YouTube 'HQ" button. How do you fit the whole window into the screen record? Thanks. Again great video!! PHP rulezzz!!!!
dawgp0und 2 years ago 3
Yet another VERY useful tut!
Thanks a lot Alex!
omanoman98 2 years ago 3
if someone logs out with a session destroy function will it log other people out as well? It will clear all the sessions right?
fibertech9 3 years ago 7
No, it works uniquely to each user (connection). They have a unique ID and only that is terminated.
phpacademy 3 years ago 3
good tutorial but one question, Isee you put in alex in the setcookie function but how will a random user's name end up in the set cookie function??
Warrlarrd 2 years ago 3
Imagine you'd replace 'name' with a variable, and set that variable to a particular name.
lashtal 2 years ago
Comment removed
davidfirminor 3 months ago