Beginner PHP Tutorial - 73 - Setting PHP Sessions

  Рет қаралды 191,847

thenewboston

thenewboston

Күн бұрын

Пікірлер: 88
@choateusaf
@choateusaf 10 жыл бұрын
Alex, you are the man! Great video. I just shared this with my PHP class for the group projects we are working on.
@varsmith6268
@varsmith6268 9 жыл бұрын
Thnaks a lot for this video. The best thing how you explain it in layman's terms for a non math major to understand programming. Great work on educating people!!
@definty
@definty 9 жыл бұрын
Cookay.....
@daniel0417ca
@daniel0417ca 6 жыл бұрын
bold text and italic
@MsAgent89
@MsAgent89 10 жыл бұрын
great basic tutorial of PHP, thank you newboston :)
@jagdipsingh8352
@jagdipsingh8352 10 жыл бұрын
Fantastic video, really clear on explaining the fundamentals of what sessions are. Thanks.
@koladealade3339
@koladealade3339 8 жыл бұрын
concise and explicit...makes perfect sense. Thanks
@Untouchabel
@Untouchabel 11 жыл бұрын
you made my day !
@akshith2985
@akshith2985 6 жыл бұрын
thenewboston, you are AMAZING. You taught it in a clear way, and gave examples too!!! This is the first video I've seen from you, and it is very helpful thank u :)
@Marshmillo
@Marshmillo 9 жыл бұрын
Thank you so much, I was able to finish my login system from your advice. Really appreciate the video. :D!
@camelCaseFTW
@camelCaseFTW 11 жыл бұрын
Finally, this is what I`ve been waiting for :D
@murheyy
@murheyy 11 жыл бұрын
It was the same with me. I just tried to open set.php then went back to view.php again and it worked as in the video =)
@SytzeVisser
@SytzeVisser 6 жыл бұрын
Love the British Cookie! Thanks - now I get the sessions thing...
@Radioposting
@Radioposting 7 жыл бұрын
Also, can I use sessions with SSL (or TLS) and/or MD5 too? -- I'm concerned about *"man in the middle" breach.* I've always been a bit suspicious about sessions -- especially when used in conjunction with cookies. I usually snag their IP address and deny any data if the saved IP doesn't match their current one. FYI, I usually code for HIPAA-compliant systems.
@LeftistUprising
@LeftistUprising 11 жыл бұрын
I have a question: Do all websites which have your information utilize cookies? For example, suppose that there is an online video game, and there is a video game score database. Are cookies necessary so that when I re-login, I see my previous video game scores?
@15r8r
@15r8r 12 жыл бұрын
are the sessions data-storage/one? if not then how would you say what session to view.
@Radioposting
@Radioposting 7 жыл бұрын
Is using a session var or data, basically makes the data/var global???
@daniellive590
@daniellive590 11 жыл бұрын
I am still a newbie to programming, but i think to solve that problem you can: 1)Go to your php file that contains the $_SESSION['username'] = 'alex' on your browser; 2)Then only enter the php file where you echo out the $_SESSION['username'] on your browser. Hope this helps.
@rajaosama3930
@rajaosama3930 7 жыл бұрын
You are Just Great .
@LeftistUprising
@LeftistUprising 11 жыл бұрын
You must apply the HTML above the PHP, or the PHP above the HTML?
@jeehooahn9114
@jeehooahn9114 11 жыл бұрын
ugh, when do you acutally make the session? index? if u start session is that logged in? or do you startsession if you intend to use login on your site? what if you use post as your method for entering form data? how do you pass data from POST to SESSION? do you use POST or SESSION for the method wehn you log into forms? coding videos tend to explain things within the scope, but when you try to understand how and where it fits (i.e. the larger scope), it's comletely silent.
@dionadewiriana6457
@dionadewiriana6457 7 жыл бұрын
that WAS a lot of question
@MrLongAnimations
@MrLongAnimations 7 жыл бұрын
easy and useful for everyone! Thank's
@markkenneth0270
@markkenneth0270 10 жыл бұрын
thanks!! very user-friendly tutorial ..
@HereIsmarcus
@HereIsmarcus 10 жыл бұрын
Many Thanks. Very helpful session tutorial.
@siddharthjagadabi306
@siddharthjagadabi306 7 жыл бұрын
is it important to have both files in one folder?
@thefabrab
@thefabrab 9 жыл бұрын
Thanks a LOT MAN! I was stuck with a problem and thanks to you I found the solution! you are a life saver :D :D :D Keep it up!
@cjvaans4484
@cjvaans4484 11 жыл бұрын
So using the start_session() bring the name of the cookie 'Alex' to the view.php. But I still don't get it.
@inuasha880
@inuasha880 13 жыл бұрын
@weward it is a localhost problem but if you upload to a normal host the errors go away/
@thesickbeat
@thesickbeat 13 жыл бұрын
@shenzhenprostitute Thats some dope technology you're developing. If only more people could program like you this world could become a better place..
@jeehooahn9114
@jeehooahn9114 11 жыл бұрын
when you attempt to log in, do you use a 3rd variable? If the login fails, then you don't want it set. But you have to set it in order to compare if it matches the credentials in the database. do you set it and then unset it? this isn't very useful until it's demonstrated within the context of actualaly logging in. incompelte. partial. can't do anything wiht it.
@kaustubh.sharma
@kaustubh.sharma 5 жыл бұрын
You got the answer or still looking for it :/ ?
@420theriddler
@420theriddler 8 жыл бұрын
my webpage hangs and never loads with the following code: the page runs fine when i comment out session_start(); im using sublime text 2 , xampp v3.2.2,php 7 , windows 10, chrome how do i fix this?
@VjakegtavNl1
@VjakegtavNl1 9 жыл бұрын
i have a start session in one file to get an id into the session. But on reload the session id is gone?! Is that because you reload and the session starts again?!
@IkBrengDePost
@IkBrengDePost 10 жыл бұрын
Very useful Thanks a lot
@eljodemonos23
@eljodemonos23 9 жыл бұрын
nice work mate thanks a lot :)
@beanheadshop
@beanheadshop 9 жыл бұрын
I appreciate the help. This is a very easy to understand video. Im just wondering how I can have the user input data uploaded to a ,php page which session can grab and placed into divs with the same Id on another .html page?
@avitayk1
@avitayk1 8 жыл бұрын
hi, how to make that session using andriod app? i cant do a session for login and move to ather page and keep login it chome session is work bat in the app is't not cant you help me with that? TIA
@jemskies3781
@jemskies3781 6 жыл бұрын
Well explained thank you very much!
@pavenhimself
@pavenhimself 12 жыл бұрын
Thank you very much
@elmarneudam4471
@elmarneudam4471 7 жыл бұрын
Thanks for the video!
@JoyfulElephant
@JoyfulElephant 12 жыл бұрын
Remember, if you have any html file in your index.php, you must apply the code above it.
@WEMAKETHEM1
@WEMAKETHEM1 12 жыл бұрын
need to keep practicing regularly
@tushargupta3535
@tushargupta3535 8 жыл бұрын
But i am facing error when i use session_start() method in my code it shows no result and also comes up with an error page not reached and looks like it is error related to enabling something from php.ini but i still not know where to made a change please help Thanks
@SuperSongrock
@SuperSongrock 11 жыл бұрын
can you tell me how to develop shopping cart using session . some body saying do with two dimensional array or do with three dimensional array. give idea sir and give some reference code for me..
@RedZambala
@RedZambala 12 жыл бұрын
It gives me error "Undefined index: name " in wamp, but the same code copied on web hosting do the job.
@mohsinshaikh8944
@mohsinshaikh8944 7 жыл бұрын
5 years ago :D error solve or not ?
@MrBhargab123
@MrBhargab123 13 жыл бұрын
bucky is good elex is not good
@naeemmurtaza1835
@naeemmurtaza1835 6 жыл бұрын
Thanks so much. your video help me to store userid in database, using session variable.
@Computeraidedautomation
@Computeraidedautomation 7 жыл бұрын
thank you alex!!
@blazethunder5525
@blazethunder5525 6 жыл бұрын
thank you it worked well for me.
@spectrevideo4066
@spectrevideo4066 7 жыл бұрын
Hello I have make quiz application in which when user get login and solve 4 question and then user get logout, after that when user get login it will redirect to question 5?how we will resolve this problem in php?
@nessnir
@nessnir 10 жыл бұрын
TNX
@georgehughes6615
@georgehughes6615 7 жыл бұрын
Thank you
@nasirgodana8124
@nasirgodana8124 5 жыл бұрын
thankyou
@tajiriAli01
@tajiriAli01 12 жыл бұрын
Coooool :)
@IbrahimIbrahim-hg3gz
@IbrahimIbrahim-hg3gz 9 жыл бұрын
I have problem.can someone help me ? When I restart my computer or when exit browser my session variables doesn't clean and all time I can see it. What is the different if it is true?
@catmeister5444
@catmeister5444 9 жыл бұрын
+Ibrahim Ibrahim You need to clear your cache in your browser settings, that should do it.
@IbrahimIbrahim-hg3gz
@IbrahimIbrahim-hg3gz 9 жыл бұрын
+Catmeister69. thank you.
@catmeister5444
@catmeister5444 9 жыл бұрын
no problem :)
@sydianalyssa4319
@sydianalyssa4319 9 жыл бұрын
Anyone else have an issue with 502 bad gateway on localhost? I've tried with both XXAMP and the built in server on PHPStorm. All the other files till now loaded fine on both. I know there is nothing wrong with the files themselves because I uploaded them to my website and they worked fine. Is there a PHP setting that needs to be adjusted, or perhaps uncommented in my local php.ini?
@sydianalyssa4319
@sydianalyssa4319 8 жыл бұрын
Apache
@billyrosario2479
@billyrosario2479 12 жыл бұрын
coookeeeyysss
@ahmadaziz1800
@ahmadaziz1800 10 жыл бұрын
awesome ::)
@thesickbeat
@thesickbeat 13 жыл бұрын
@shenzhenprostitute LOL! Thats the funniest shit I've heard in a while. I'm only a bit hesitant about it, because there aren't many people out there that can qualify themselves as a pimp like us so you won't gain alot of profit out of it. Are you still going to continue the project?
@FFWDEntertainment
@FFWDEntertainment 13 жыл бұрын
His isn't thenewboston style, I haven't missed a tut yet and ur talking about cookies before we've ever talked about me, what gives Alex?
@BilguunsparKO
@BilguunsparKO 11 жыл бұрын
mine still stays at pls log in :(
@WEMAKETHEM1
@WEMAKETHEM1 12 жыл бұрын
are first 100 lectures the introductory lectures only because these are quite simple
@weward364
@weward364 13 жыл бұрын
Notice: Undefined index: username in C:\xampp\htdocs\practice\setting_sessions.php on line 4 Notice: Undefined index: password in C:\xampp\htdocs\practice\setting_sessions.php on line 5 how do i fix that? i followed everything in the video
@Milixation
@Milixation 12 жыл бұрын
omnomnom cookies :3
@RahilWazirAli
@RahilWazirAli 12 жыл бұрын
today now you have to say, who is billy?
@PrakashBesra
@PrakashBesra 7 жыл бұрын
clear cookies if you have problem.
@TheRijintube
@TheRijintube 11 жыл бұрын
Try making a website, you'll remember :)
@imnoobish
@imnoobish 11 жыл бұрын
i want you to come to my school and replace my prof
@MadridIsta7
@MadridIsta7 11 жыл бұрын
its impossible to remember everything, it just needs practice
@johnmart09
@johnmart09 11 жыл бұрын
127 videos more to go.
@calmplzz7804
@calmplzz7804 9 жыл бұрын
Change Username to Name in view.php..:)
@DougMeiser
@DougMeiser 11 жыл бұрын
anybody else have a craving for cookies now?
@mastermax7777
@mastermax7777 13 жыл бұрын
i like turtles
@DaCurse0
@DaCurse0 8 жыл бұрын
whu wont sax
@Glypt0d0n
@Glypt0d0n 12 жыл бұрын
hahaha
@Novica89
@Novica89 12 жыл бұрын
Not really, after you complete 200 videos you are just around advanced. Then you need to learn much more to be an expert :)
Beginner PHP Tutorial - 74 - Unsetting PHP Sessions
5:25
thenewboston
Рет қаралды 88 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 83 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Beginner PHP Tutorial - 70 - Working with $_POST Variables
8:14
thenewboston
Рет қаралды 95 М.
Beginner PHP Tutorial - 75 - Creating Cookies with PHP
7:42
thenewboston
Рет қаралды 140 М.
Functional programming - A general introduction
11:47
Daedalus Community
Рет қаралды 118 М.
Deep Dive into REST API Design and Implementation Best Practices
12:02
Software Developer Diaries
Рет қаралды 66 М.
Beginner PHP Tutorial - 65 - Getting Visitors IP Address
6:41
thenewboston
Рет қаралды 98 М.
Debugging JavaScript - Chrome DevTools 101
7:28
Chrome for Developers
Рет қаралды 843 М.
Beginner PHP Tutorial - 77 - File Handling: Writing to a File
6:56
thenewboston
Рет қаралды 100 М.