Login logout system with session in php for beginners
ฝัง
- เผยแพร่เมื่อ 28 พ.ย. 2024
- "Hey guys if this video helps you then please subscribe my channel to support me.Thanks :)" *
In this video i will show you how to make login and logout system with session in php.Without login user can not acces the other page of your website excluding login page.If user try to acces other page by direct link then he should be redirected to login page.
if user loged in then user can acces all the page of website.
After logout session was destroyed and user have to login again to acces all the page.
i hope you like this video.
Please Subscribe my channel and like,share this video.
Thank you.
#php #loginlogout #session
* "Hey guys if this video helps you then please please dont forget to subscribe my channel that will inspire me to make such more videos for you. Thanks guys for watching my video :)" *
Thnks bro... its useful
the video helps me but but but but i won't subscribe i'm not satisfy i want hardcore video codings also you got a reward 1 DISLIKE
Bhai video Hindi rakna chahiye
@@VinodGupta-dj8my ha bhai age k video hindi mehi ayege
@@mukeshchaudhary1688 Bhai plz muj yah video Hindi me chahiye acha bataya ha tum ne but English me samj nai raha ha
This was just what I needed. Just finished my first user authenticated website thanks to you. Your explanation was very clear and it all makes sense. It's amazing how so much functionality can be jammed into so little code. Thank you.
Thank you sir jo hamse class me nahi samjha wo aapne samjha diya wo bhi 5 min me
🤗🤗
thank u sooo much. i hv been struggling last two days.
point to point explanation. Very informative.
Glad it was helpful!
Thank you for the video.
concept of session is well defined here Tnx
Shukriya Mukesh bhai, gotta say. You made an excellent tutorial, all I need to do is connect this to a database.
With database is also posted... watch that video also 😊
This is what I am looking for. Thankyou so much Sir..
Thank you for posting this video.
Welcome 😊
Thanks bro very helpful video in such a short time
Thanks so much bro....very helpfulll your video
Thank you so much, love your content!
Well explained! keep the videos coming!
Thanks
Awesome, best login php tutorial on yt.
Thanks 😊 watch my second video of login system with database.
Thank you very mutch for being simple and streight
Thanks for appreciation 😊
Watch my latest video.. Which is improved version of this
Nice vídeo. Simple anda Clean. Great!
julio vitorino thanks :)
Good tutorial Bro... Keep it up.
Thanks
Great method
Thanks 😊
Thank you so much brother it really helped me 🙏🙏🙏
tysm alot mukesh brother , this video stood really helpful for me as well as my partner...............i just needed the second page codes ...............because it is not totally available on the video...................it is only till 25th line............i need the below codes also..............tysm brother
Thanks man, please watch carefully I showed all the code in this video.. If you looking for welcome page code then watch at 3.15 minute you will get it.😊
Mukesh Chaudhary there u go brother✨tysm for ur valuable time for me May God bless uhh brother, stay happie and keeping helping
@@rajkumargaikwad5706 thank you so much 😊😊
thanks! my saviour! new subsriber here
Thanks
you are awesome thank you!
Brilliant teaching
Thanks
bhai bhut badiya ,, your teaching to programming is much good ..bro, i wish ,.. you try maintain to upload continusly with these types of videos and for this video thanks bro.....
Welcome bro 😊
Watch my latest video
Description box mai. Code bhi dalaa karo bahot help ho jayegi...
Ok 👍
Thanks brother
Welcome :)
Nice bro🤟🤟🤟
Thanks 😊
Vry hlpful
Thank you 😊
Thanks very much. This really, Really, REALLY helped me!
Welcome, 😊
Keep supporting my channel :)
same here. brilliant video
@@jacobtodd275 thank you :)
I see what U did there
Can i hire your service, i need to pay as your student, i have a project, can we chat on wataapp
i subscribed... I am expecting more cool videos, so simple and just what i needed..because i just learned php and ajax.. really need session tutorials
Thanks and sure i will do that.. 😊
Thank you so much. I was looking for something like this. You are seriously a big help.
Your welcome :)
nice video! thanks a lot
thank you soo much..your video is what i exactly wanteddd..thank u again
Welcome :) keep supporting by subscribing my channel.
thanks for this video session
Thank you :)
Wonderful. this is nice simple tutorial.... but please show using the database
Thanks 😊
Thank you so much! This is exactly what I needed :)
Lloyd F welcome :) please subscribe my channel... !
Thanks sir for the awesome tutorial! It really helpful :D
Welcome :) please subscribe my channel to support me 😊
nicely explained
bingi venkatesh thank you
awesome sir please carry onnnnnnnnnnnnnnn
debasish chatterjee thank you 😊 and plz subscribe my channel and like this video.
nice one 😊😊😊
Thanks
Good. Thank you so much bro
Perfect example.❤️
Thank you so much for this video!! It really helped me with an assignment I have been struggling with.
Welcome 😊...stay tuned and subscribe.
Thanx sir
Thank you so much!
U have taken static values...when I tried using values from db...it is not displaying anything...actually session is not starting...it would b very helpful for me to know how to login with dynamic values
Checkout my latest video ☺
@@mukeshchaudhary1688 ok
very helpful video
Thank you :)
Great video. Very good. I have a question. Can I put several usernames and passwords into the session? For using for more than one user?
You need database for that.. For more clarification watch my second video of login.
registration page be bnao plz saath mai oska table be show ho and vo session ki value get kare to login ho other wise na ho
Thank you
This is what I am looking for. Thank you!!!
*JUST A GREAT VIDEO BOSS!*
Thanks Man 😊
In logout.php why we need redirection in if else statement? Cant we just unset the session with if statement and after if redirect.
After unset session also we need to redirect for login without redirecting how it comes to know what to do after unset.
In logout script... Redirection is defined twice on line 8 (in if statement) and line 12 (in else statement). If we unset the session with only if statement and close it then pass on the redirect without else statement.
Hey Mukesh !! you had really done a excellent work!! Keep it up and thanks for this great help!! I will be more thankful to you if you can provide the source code, so that We can try it ourself!!
Sorry but i don't have code now.. I formated my PC so..
@@mukeshchaudhary1688 yeah i can understand that.. Actually everything is okay but i just need the code for welcome.php file.. As i was basically learning about sessions
Good vedio but I want same several users
Watch my latest video 😊
Can you teach, integrating two web application on a webserver? Where user logins into one webapp gets logged into other application as well
Sorry bro i don't know about this.
So basically you mean there is two types of web, the first one is for the login menu, and then the next is for the web ?
It doesn't work on me..why???
Incorrect username
Ohhhh mukesh 😂😂 sapna kesi hai she is with you or in nalasupara 🤣🤣
Dw.. she is with me in my sapna 😂😂
but, AFTER you've logged out, what happens if the user clicks the browser BACK button?
We destroyed session so it checked session again if not set then it will redirect user to login page
Hello Mukesh, I want to know how to host a website globally from own computer.
How to show a html page after successful login.. Pls help
What is difference b/w login& welcome page.??
if login successful then it will redirect you to welcome page.. Without login you can't access any page rather then login.
Hi nice sir. But can you please help me out for time session of expire in 5 min ??
Thanks
simply super
Sita Ramanjaneyulu thank you 😊
Can you show same login using phpmyadmin database
Hi Mukesh, How can i allow a 2nd person to login? And without a database?
You need to use database and registration page. Without database it is not feasible way to do it. But you can do it with session variables by storing user data in it.
Directly session cookies use are too risky.. use token as cookies..
Hello ,
Thats Very Helpful Video But In Where Can I Get The Code !?
No source available. You can type all the code from this video.
Can you provide the link for the above code!! It will be really helpful
Sorry, I don't have this code now.
@@mukeshchaudhary1688 Okk no problem fam!
sir can i ask? how to connect this log in system to the bootsrap?
That's only designing part which is client side... You can use as per your requirement... Php remain same
such like above I create a logout, it makes out of current page and redirect to index.php page but by clicking back button, reopen the logged page. How can I resolve it
How to log in with multi user(user have a role like staff supervisor or admin)
For that you have to use database
thankd
❤❤
excellent bro but how to set user name & password
If you creating real web application then you have to set username and password in database table then you have to fetch username and password from database and store to the variables
While username and password is correct we redditecf them to welcome page but why a session variable is set there?
We are setting session in welcome page in case of session is not set. Check if conditions carefully. Session is set in else part.
@@mukeshchaudhary1688 if they are incorrect we can just pop a msg it's incorrect know why session variable needs to be set?
We are setting it in case of correct and redirecting to the same page and if incorrect then showing pop up and redirecting to login page. Please check code.
@@mukeshchaudhary1688 thank you
@@rithikasasitharan5398 welcome 🤗
Superb video. I tried applying your code in GoDaddy's cPanel and found some issues with the code. How can I make your Php Sessions code work in cPanel?
how to use sessions for multiple login and if we want to show the particular page to the particular login.
Same doubt if you know this pls help me because it's depends on marks for me
okay then first explain whats your exact requirements..what kind of multiple login and for what?
Basically Iam a student it's on my project I want a session how it work
@@kalingirisridhar that's okay but where you want to use session? For a particular task or just for project features that you used session
@@mukeshchaudhary1688 it's just for project
it is using MYSQL database?
No, but you can use it.
Bro, please help me with this: I want to login with matching username and password from database table and display only selected data from the other tables using PHP. If you have enough time to. Thank you in anticipation.
Sure.. I will post this tutorial soon 👍
If you please bro, kindly add along with file upload.
Thanks a lot.
@@TECLOVENIA I already uploaded a video regarding file uploading in php. Please watch that video
@@mukeshchaudhary1688 Thanks a lot bro 👍
@@TECLOVENIA th-cam.com/video/IO6djibkpFo/w-d-xo.html watch this video 👍
Pge Ko run krne pr output kis taraf niklte h
Output hamesha client side dikhta he... Uska processing server side hota he.
@@mukeshchaudhary1688 me esa bol ri hu bro localhost me run nhi ho rha Mene new strt kiya h to muje pta ni h bro to localhost likhne pr nhi aa rha
@@Theaaruh xampp control panel me Apache server and mysql server start kiya?
Haa kiya h
Then file save kha ki he?
when i type right credentials, it always appear wrong username or password. where was the error?
Do you following same procedure shown in this video?
@@mukeshchaudhary1688 yes sir but it always appear wrong credentials
@@kerbyangelopatungan2021 then check the if conditions once again.. Maybe you missed some conditions or misplaced if block... Check and reply.
@@mukeshchaudhary1688 i already check it one by one but its always the same
@@kerbyangelo4055 then mail me all of your code file.. I will check it
even though i insert wrong username and pass, it still logged in? help
Is that one time logged in correct and then without doing logout you tried to insert wrong username?
@@mukeshchaudhary1688 no
@@anomolisagag2270 welcome 😊
when i open the login.php only a code is visible...
shreshth kant make sure your Apache server is running
ok thanks i will check
Ok
how to create pdf upload image upload after login as admin please help
sir my alert message does not display?
Please check out code again. You may have syntax error or wrong code flow.
CSS ka code link bhej dijiye sir plz
Hello sir I want help to create a project in php
What kind of help you need?
After "to" there is 1st form of verb
bro are you on discord or slack?
i wanna to become a web developer how can you help me?
If you want to become professional web developer then i suggest you to get training of php from any good institute or company.
Is this venerable to hacks?
I need this code for project so if you sent me it will be helpful to me
where is source code bro.
It's accidentally deleted... i don't have copy of this... You can write your own.. By watching this video i explained and showed everything in it... I hope it's helps you bro...
English se accha hindi hi bol lete hesitate ho rahe the bhai and thanks
u can user the header() function instead
Yes we can also use that both works fine.
please try to reduce the sound of saliva .its so irritating
Sure, sorry for that!!
Sir can u send me that code
i want source code bro....will u plzz ...
if possible..?
Sorry, i don't have source code now.