Alex, you are the man! Great video. I just shared this with my PHP class for the group projects we are working on.
@daniel0417ca6 жыл бұрын
bold text and italic
@daniellive59011 жыл бұрын
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.
@Radioposting7 жыл бұрын
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.
@varsmith62689 жыл бұрын
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!!
@inuasha88013 жыл бұрын
@weward it is a localhost problem but if you upload to a normal host the errors go away/
@cjvaans448411 жыл бұрын
So using the start_session() bring the name of the cookie 'Alex' to the view.php. But I still don't get it.
@tushargupta35358 жыл бұрын
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
@avitayk18 жыл бұрын
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
@420theriddler8 жыл бұрын
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?
@LeftistUprising11 жыл бұрын
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?
@VjakegtavNl19 жыл бұрын
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?!
@15r8r12 жыл бұрын
are the sessions data-storage/one? if not then how would you say what session to view.
@Radioposting7 жыл бұрын
Is using a session var or data, basically makes the data/var global???
@jeehooahn911411 жыл бұрын
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.
@dionadewiriana64577 жыл бұрын
that WAS a lot of question
@LeftistUprising11 жыл бұрын
You must apply the HTML above the PHP, or the PHP above the HTML?
@SuperSongrock11 жыл бұрын
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..
@beanheadshop9 жыл бұрын
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?
@spectrevideo40667 жыл бұрын
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?
@jagdipsingh835210 жыл бұрын
Fantastic video, really clear on explaining the fundamentals of what sessions are. Thanks.
@jeehooahn911411 жыл бұрын
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.sharma5 жыл бұрын
You got the answer or still looking for it :/ ?
@IbrahimIbrahim-hg3gz9 жыл бұрын
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?
@catmeister54449 жыл бұрын
+Ibrahim Ibrahim You need to clear your cache in your browser settings, that should do it.
@IbrahimIbrahim-hg3gz9 жыл бұрын
+Catmeister69. thank you.
@catmeister54449 жыл бұрын
no problem :)
@RedZambala12 жыл бұрын
It gives me error "Undefined index: name " in wamp, but the same code copied on web hosting do the job.
@mohsinshaikh89447 жыл бұрын
5 years ago :D error solve or not ?
@definty9 жыл бұрын
Cookay.....
@siddharthjagadabi3067 жыл бұрын
is it important to have both files in one folder?
@Marshmillo9 жыл бұрын
Thank you so much, I was able to finish my login system from your advice. Really appreciate the video. :D!
@MsAgent8910 жыл бұрын
great basic tutorial of PHP, thank you newboston :)
@akshith29856 жыл бұрын
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 :)
@camelCaseFTW11 жыл бұрын
Finally, this is what I`ve been waiting for :D
@koladealade33398 жыл бұрын
concise and explicit...makes perfect sense. Thanks
@JoyfulElephant12 жыл бұрын
Remember, if you have any html file in your index.php, you must apply the code above it.
@sydianalyssa43199 жыл бұрын
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?
@sydianalyssa43198 жыл бұрын
Apache
@murheyy11 жыл бұрын
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 =)
@MrBhargab12313 жыл бұрын
bucky is good elex is not good
@Untouchabel11 жыл бұрын
you made my day !
@WEMAKETHEM112 жыл бұрын
need to keep practicing regularly
@thesickbeat13 жыл бұрын
@shenzhenprostitute Thats some dope technology you're developing. If only more people could program like you this world could become a better place..
@BilguunsparKO11 жыл бұрын
mine still stays at pls log in :(
@SytzeVisser6 жыл бұрын
Love the British Cookie! Thanks - now I get the sessions thing...
@weward36413 жыл бұрын
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
@WEMAKETHEM112 жыл бұрын
are first 100 lectures the introductory lectures only because these are quite simple
@thesickbeat13 жыл бұрын
@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?
@FFWDEntertainment13 жыл бұрын
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?
@MrLongAnimations7 жыл бұрын
easy and useful for everyone! Thank's
@naeemmurtaza18356 жыл бұрын
Thanks so much. your video help me to store userid in database, using session variable.
@HereIsmarcus10 жыл бұрын
Many Thanks. Very helpful session tutorial.
@PrakashBesra7 жыл бұрын
clear cookies if you have problem.
@thefabrab9 жыл бұрын
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!
@markkenneth027010 жыл бұрын
thanks!! very user-friendly tutorial ..
@eljodemonos239 жыл бұрын
nice work mate thanks a lot :)
@RahilWazirAli12 жыл бұрын
today now you have to say, who is billy?
@rajaosama39307 жыл бұрын
You are Just Great .
@MadridIsta711 жыл бұрын
its impossible to remember everything, it just needs practice
@jemskies37816 жыл бұрын
Well explained thank you very much!
@blazethunder55256 жыл бұрын
thank you it worked well for me.
@IkBrengDePost10 жыл бұрын
Very useful Thanks a lot
@elmarneudam44717 жыл бұрын
Thanks for the video!
@nessnir10 жыл бұрын
TNX
@pavenhimself12 жыл бұрын
Thank you very much
@imnoobish11 жыл бұрын
i want you to come to my school and replace my prof
@TheRijintube11 жыл бұрын
Try making a website, you'll remember :)
@Computeraidedautomation7 жыл бұрын
thank you alex!!
@tajiriAli0112 жыл бұрын
Coooool :)
@johnmart0911 жыл бұрын
127 videos more to go.
@Milixation12 жыл бұрын
omnomnom cookies :3
@nasirgodana81245 жыл бұрын
thankyou
@georgehughes66157 жыл бұрын
Thank you
@billyrosario247912 жыл бұрын
coookeeeyysss
@calmplzz78049 жыл бұрын
Change Username to Name in view.php..:)
@DougMeiser11 жыл бұрын
anybody else have a craving for cookies now?
@ahmadaziz180010 жыл бұрын
awesome ::)
@Novica8912 жыл бұрын
Not really, after you complete 200 videos you are just around advanced. Then you need to learn much more to be an expert :)