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.
@daniel0417ca
@daniel0417ca 6 жыл бұрын
bold text and italic
@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.
@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.
@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!!
@inuasha880
@inuasha880 13 жыл бұрын
@weward it is a localhost problem but if you upload to a normal host the errors go away/
@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.
@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
@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
@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?
@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?
@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?!
@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???
@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
@LeftistUprising
@LeftistUprising 11 жыл бұрын
You must apply the HTML above the PHP, or the PHP above the HTML?
@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..
@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?
@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?
@jagdipsingh8352
@jagdipsingh8352 10 жыл бұрын
Fantastic video, really clear on explaining the fundamentals of what sessions are. Thanks.
@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 :/ ?
@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 :)
@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 ?
@definty
@definty 9 жыл бұрын
Cookay.....
@siddharthjagadabi306
@siddharthjagadabi306 7 жыл бұрын
is it important to have both files in one folder?
@Marshmillo
@Marshmillo 9 жыл бұрын
Thank you so much, I was able to finish my login system from your advice. Really appreciate the video. :D!
@MsAgent89
@MsAgent89 10 жыл бұрын
great basic tutorial of PHP, thank you newboston :)
@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 :)
@camelCaseFTW
@camelCaseFTW 11 жыл бұрын
Finally, this is what I`ve been waiting for :D
@koladealade3339
@koladealade3339 8 жыл бұрын
concise and explicit...makes perfect sense. Thanks
@JoyfulElephant
@JoyfulElephant 12 жыл бұрын
Remember, if you have any html file in your index.php, you must apply the code above it.
@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
@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 =)
@MrBhargab123
@MrBhargab123 13 жыл бұрын
bucky is good elex is not good
@Untouchabel
@Untouchabel 11 жыл бұрын
you made my day !
@WEMAKETHEM1
@WEMAKETHEM1 12 жыл бұрын
need to keep practicing regularly
@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..
@BilguunsparKO
@BilguunsparKO 11 жыл бұрын
mine still stays at pls log in :(
@SytzeVisser
@SytzeVisser 6 жыл бұрын
Love the British Cookie! Thanks - now I get the sessions thing...
@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
@WEMAKETHEM1
@WEMAKETHEM1 12 жыл бұрын
are first 100 lectures the introductory lectures only because these are quite simple
@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?
@MrLongAnimations
@MrLongAnimations 7 жыл бұрын
easy and useful for everyone! Thank's
@naeemmurtaza1835
@naeemmurtaza1835 6 жыл бұрын
Thanks so much. your video help me to store userid in database, using session variable.
@HereIsmarcus
@HereIsmarcus 10 жыл бұрын
Many Thanks. Very helpful session tutorial.
@PrakashBesra
@PrakashBesra 7 жыл бұрын
clear cookies if you have problem.
@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!
@markkenneth0270
@markkenneth0270 10 жыл бұрын
thanks!! very user-friendly tutorial ..
@eljodemonos23
@eljodemonos23 9 жыл бұрын
nice work mate thanks a lot :)
@RahilWazirAli
@RahilWazirAli 12 жыл бұрын
today now you have to say, who is billy?
@rajaosama3930
@rajaosama3930 7 жыл бұрын
You are Just Great .
@MadridIsta7
@MadridIsta7 11 жыл бұрын
its impossible to remember everything, it just needs practice
@jemskies3781
@jemskies3781 6 жыл бұрын
Well explained thank you very much!
@blazethunder5525
@blazethunder5525 6 жыл бұрын
thank you it worked well for me.
@IkBrengDePost
@IkBrengDePost 10 жыл бұрын
Very useful Thanks a lot
@elmarneudam4471
@elmarneudam4471 7 жыл бұрын
Thanks for the video!
@nessnir
@nessnir 10 жыл бұрын
TNX
@pavenhimself
@pavenhimself 12 жыл бұрын
Thank you very much
@imnoobish
@imnoobish 11 жыл бұрын
i want you to come to my school and replace my prof
@TheRijintube
@TheRijintube 11 жыл бұрын
Try making a website, you'll remember :)
@Computeraidedautomation
@Computeraidedautomation 7 жыл бұрын
thank you alex!!
@tajiriAli01
@tajiriAli01 12 жыл бұрын
Coooool :)
@johnmart09
@johnmart09 11 жыл бұрын
127 videos more to go.
@Milixation
@Milixation 12 жыл бұрын
omnomnom cookies :3
@nasirgodana8124
@nasirgodana8124 5 жыл бұрын
thankyou
@georgehughes6615
@georgehughes6615 7 жыл бұрын
Thank you
@billyrosario2479
@billyrosario2479 12 жыл бұрын
coookeeeyysss
@calmplzz7804
@calmplzz7804 9 жыл бұрын
Change Username to Name in view.php..:)
@DougMeiser
@DougMeiser 11 жыл бұрын
anybody else have a craving for cookies now?
@ahmadaziz1800
@ahmadaziz1800 10 жыл бұрын
awesome ::)
@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 :)
@mastermax7777
@mastermax7777 13 жыл бұрын
i like turtles
@DaCurse0
@DaCurse0 8 жыл бұрын
whu wont sax
@Glypt0d0n
@Glypt0d0n 12 жыл бұрын
hahaha
Beginner PHP Tutorial - 74 - Unsetting PHP Sessions
5:25
thenewboston
Рет қаралды 88 М.
Beginner PHP Tutorial - 70 - Working with $_POST Variables
8:14
thenewboston
Рет қаралды 95 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Beginner PHP Tutorial - 75 - Creating Cookies with PHP
7:42
thenewboston
Рет қаралды 140 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 83 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Beginner PHP Tutorial - 65 - Getting Visitors IP Address
6:41
thenewboston
Рет қаралды 98 М.
Beginner PHP Tutorial - 77 - File Handling: Writing to a File
6:56
thenewboston
Рет қаралды 100 М.
⚡️NEWS | UNITED RUSSIA OFFICE AND ATMS BURNED DOWN | COMPLAINING TO PUTIN ABOUT GREF
9:14
APIs Explained | Real World Examples
11:36
CertBros
Рет қаралды 529 М.
Beginner PHP Tutorial - 58 - timestamps
6:56
thenewboston
Рет қаралды 97 М.