Login using Servlet and JSP | How to Prevent Back button after Logout? | Part 2

  Рет қаралды 149,157

Telusko

Telusko

Күн бұрын

Пікірлер: 132
@wilsoncardoso150
@wilsoncardoso150 6 жыл бұрын
I just came here to say thank you so much for sharing and explaining the knowledge that you have, you explain with so much patient and passion that I was able to understand completely. Keep up the good work.
@adityajain7614
@adityajain7614 4 жыл бұрын
I must admit that You are "A Savior"!
@miltonchowdhury4016
@miltonchowdhury4016 6 жыл бұрын
Thanks a lot Telusko Learnings for helping me to upload this wonderful and very helpful video....really sir your all video is awesome on java and jsp-servlet.....we hope next time we will get more videos...thanks once again...
@bdrq
@bdrq 4 жыл бұрын
You saved my life!!!! Greetings from Colombia!!!
@rajmehta651
@rajmehta651 21 күн бұрын
Wow,what a useful video ❤
@omer_usta
@omer_usta 6 жыл бұрын
Never use Expires = 0 to prevent caching. The Expires header is sent by the remote server and passed through to the browser by the Portal Server. Unless the time on all three machines is synchronized, an Expires=0 header can mistakenly return cached content. To solve this problem, set the Expires header to a fixed date that is definitely in the past.
@ruiyijohnwu6295
@ruiyijohnwu6295 3 жыл бұрын
The disable back button really makes me laugh. I really appreciate you made such wonderful videos.
@joeljacob1066
@joeljacob1066 4 жыл бұрын
Both the videos really helped me a lot. Can use tell how to prevent the same user accessing different browser at a time
@milaanvigraham8664
@milaanvigraham8664 5 жыл бұрын
Whenever you make changes in jsp files, you must refresh the project. You don't need to restart the server. Nor do you need to clean the project. Thanks for the video though :)
@jayantagarwal6339
@jayantagarwal6339 5 жыл бұрын
Awesome Sir, this what I wanted to learn
@webdev4786
@webdev4786 6 жыл бұрын
great....this woes the only problem am facing after i have done a complete functioning website
@hikmatmarashdeh2293
@hikmatmarashdeh2293 5 жыл бұрын
Thank you very much for your amazing explanation and demo.
@nitishrohilla5822
@nitishrohilla5822 7 жыл бұрын
Thank you sir for this video by the way i already found this method on stack overflow after a long wait..😅😅 and you are right disabling back button is not good method user will feel annoyed .but your way of teaching is very funny..😂😂😂. And one more think i wanna tell you please disable cached in browser>console>network when you are testing your site on browser. it will help you and you will never face that html editied effect issue in your webpage.
@mesimple100
@mesimple100 3 жыл бұрын
Not working, i m still able to go back to previous pages
@kiranparui4637
@kiranparui4637 7 жыл бұрын
Thank you so much sir...i was waiting for you to make this video....
@anandsharma8535
@anandsharma8535 2 жыл бұрын
Sir when we click on the back button after logging out it says to resubmit the data or reload the page and when i clicked on reload button we were back on the index page. What can we do prevent that?
@user-a2-23
@user-a2-23 Жыл бұрын
exactly .I just came to comment the same . @telusko please tell this concept
@sagarmeena0210
@sagarmeena0210 6 жыл бұрын
thanks for making these video...they're really helpful
@erdeepakkumar61
@erdeepakkumar61 7 жыл бұрын
Sir after logging out I can still go to welcome.jsp page by pressing back button. I had set the headers to stop the caching but still the problem is there.
@chauhanraj659
@chauhanraj659 6 жыл бұрын
This info of postback I was searching from a long time! This video gave the concept of response.setHeader(..) !!!
@gouthamboine1898
@gouthamboine1898 5 жыл бұрын
hello sir, setHeader method working only once. if i click my back button more than one time its showing me the secured pages again. please help me out.
@irfanansari6448
@irfanansari6448 4 жыл бұрын
Thank you so much, it really helped me in my project.
@CodeWithCB
@CodeWithCB 5 жыл бұрын
The solution you mentioned is browser specific. So how to generalize it so that any browser back button click will fail for secured resource access, after logout?
@waytolearningcomputerscien6558
@waytolearningcomputerscien6558 Жыл бұрын
sr your videos are very useful ,please upload some video related to jsf in java
@syed12385
@syed12385 7 жыл бұрын
Sir, I used complete code it’s working .. But after login if we press back button it shows login page actually it should not ...plz check
@divyanshchaudhary7063
@divyanshchaudhary7063 5 жыл бұрын
Even In my code it's showing Click resubmission and after click back again it reload to the login page.
@Fakipo
@Fakipo 4 жыл бұрын
@@divyanshchaudhary7063 did you find a solution to this problem?
@abhinavgoswami9264
@abhinavgoswami9264 3 жыл бұрын
Jump to 7:08 if you have watched part 1.
@omarmoussamih4214
@omarmoussamih4214 6 жыл бұрын
it's verry helpfuul !! Thank you
@zn6151
@zn6151 4 жыл бұрын
This guy is genius
@akshaysatija7505
@akshaysatija7505 7 жыл бұрын
I have done the same thing but after logout i can go to my previous page ?
@modernsanskari4398
@modernsanskari4398 7 жыл бұрын
There is still a problem with Login module. After entering the correct username and password ,you will be redirected to welcome page. But if you press Back button it wil again show the Login page i.e you are logged out without clicking on logout button. Can we make exact login module like FB,Gmail etc . Also how can we disable back button and we can easily give a navigable button on the web page only.
@prasannareddyisireddy8233
@prasannareddyisireddy8233 6 жыл бұрын
Have you find the solution??
@sourabhsharma9830
@sourabhsharma9830 6 жыл бұрын
Use cookies
@AbhishekKumar-zg7if
@AbhishekKumar-zg7if 4 жыл бұрын
Thank you. Important information.
@romilsondgerard1978
@romilsondgerard1978 Ай бұрын
Thanks for such a great video! Thing is, when we do no-cache, I can no longer travel between pages once the user is logged in. So how can I prevent back button after logout but still be able to travel between pages while logged-in?
@giorgiogaratti6652
@giorgiogaratti6652 2 жыл бұрын
Thanks! Very useful...
@arpandutta3106
@arpandutta3106 3 жыл бұрын
what if i want the pages to be cached for faster access, but it should only be accessed if we are logged in.
@anujaashokjaiswal5578
@anujaashokjaiswal5578 6 жыл бұрын
thank you so much you save my life
@milaanvigraham8664
@milaanvigraham8664 5 жыл бұрын
I have a question. This method seems to depend on a client's browser to be secure. What would happen if someone releases a browser that ignores this particular header? That chooses to store the cache data anyway? Isn't that perfectly possible?
@madhumitanaskar962
@madhumitanaskar962 5 жыл бұрын
Hi Sir, I have written the below code in my JSP file to prevent the back button to work. But it seems the code is not working: response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "0");
@Fakipo
@Fakipo 4 жыл бұрын
It is not working for me aswell, did you find a solution yet?
@sketchwithbratati4397
@sketchwithbratati4397 3 жыл бұрын
Same... Not working for me as well
@miasevda4728
@miasevda4728 2 жыл бұрын
@@sketchwithbratati4397 please did you find any solution ?
@mahenkumarage9145
@mahenkumarage9145 2 жыл бұрын
@@miasevda4728 try this add to login page
@swarnajitghosh4214
@swarnajitghosh4214 4 жыл бұрын
The thing is it doesnt work on multiple pages...suppose i logged in to a page user.jsp then again after clicking on something i went to another page show.jsp still it doesnt allow me to go back to user.jsp page..withour even logging out..
@Fakipo
@Fakipo 2 жыл бұрын
Hi, Excellent video, my question is can we set these headers disabling caches in servlets instead of JSPs?
@maheshwarir3961
@maheshwarir3961 6 жыл бұрын
Awesome Navi
@sivakumarr7799
@sivakumarr7799 3 жыл бұрын
if i have dummy servlet and set uname then will it allow?
@emper0r5
@emper0r5 Жыл бұрын
When I press back button then confirm form resubmission pages appears and if I reload it, the welcome page gets opened. So whats the solution for this ?
@deepdeshmukh9339
@deepdeshmukh9339 7 жыл бұрын
Hello Navin sir, I use the only servlet page code for back button disable.what is the code for it in a servlet page, not in jsp?please help me.
@edwinmanalaotao2019
@edwinmanalaotao2019 2 жыл бұрын
Hello can you help me? Whenever i try to go back after logging out, I keep receiving a Confirm Form Resubmission and an ERR_CACHE_MISS
@SarkarBLR
@SarkarBLR 4 жыл бұрын
Hello I some issue whenever I am trying to login my hosting dashboard this error is showing" servlet" problem. What is the reason behind it. And I have a doubt with my hosting provider , I don't want host my website on their server.
@leotan5601
@leotan5601 6 жыл бұрын
excuse me sir what JDK version are you using in this example? mine is JDK 1.8(Default) in netbeans and it does not recognize response.setHeader() that has 4 parameters
@leotan5601
@leotan5601 6 жыл бұрын
sorry double checked and found it is typing error its now fixed
@rajjputsufiyaan3855
@rajjputsufiyaan3855 6 жыл бұрын
Sendredirect always uses GET method, thus how did you manage to use the POST request with the sendRedirect? Please advice
@amandeep01010
@amandeep01010 4 жыл бұрын
I worked as video says, not able to access the secure page after logging out in chrome but in safari I can. Any update?
@dipusaha7133
@dipusaha7133 5 жыл бұрын
Its not working for me...pls help me out..
@tandonpushkar
@tandonpushkar 7 жыл бұрын
Thank u so much 4 dis one....!!!
@kavin1814
@kavin1814 5 жыл бұрын
Not all heroes wear capes.
@techroyal6498
@techroyal6498 7 жыл бұрын
jsp or php which i s better to choosing building a homepage,i seen in quora most peoples are saying jsp is litlle bit slow it takes a some time to get a load is it truth??
@orbit-chanel
@orbit-chanel 4 жыл бұрын
thanks for this knowlege
@Stack404..
@Stack404.. 4 жыл бұрын
how you write servlet code in html response page its not working for me
@OWNu_
@OWNu_ 2 жыл бұрын
Can we use this deleting cache command in flask?
@liveproject7003
@liveproject7003 6 жыл бұрын
thanu soo much sir
@hari7027
@hari7027 4 жыл бұрын
Welcome back aliens😂😂
@vasudevp1703
@vasudevp1703 5 жыл бұрын
You are amazing sir....
@keertigoswami6711
@keertigoswami6711 3 жыл бұрын
Another issue is there after logout going one time back it is showing login page that is fine but again going back then it is showing login page with both username and password credentials.
@rishumehta745
@rishumehta745 2 жыл бұрын
hi i tried this corde but it is not working in my eclipse and chrome...i can directly load dashboard without login and after logout i can still go back to index page without login
@miasevda4728
@miasevda4728 2 жыл бұрын
Did you find any solution please ?
@Csequerycom
@Csequerycom 2 жыл бұрын
How to give points to user when user sign up in website In java, jsp. Please help me 😫🙏🙏💓sir....
@joschaweiss312
@joschaweiss312 6 жыл бұрын
there is that trick where you use "inspect element" and then you change the tag of password type="password" into type="string" and so see the password. Is there a way to avoid this?
@abdulmominkhattak
@abdulmominkhattak 2 жыл бұрын
I don't think there is any solution to that.
@soumyadeepganguly5892
@soumyadeepganguly5892 4 жыл бұрын
Shouldn't we disable the new sessions created with jsp with page session=false directive? Cause we only want the one session created after login and attach the user to the session attribute. right? We don't need all those jsp sessions
@shrutichopra1814
@shrutichopra1814 7 жыл бұрын
Thanks alot sir 😊😊
@karj7072
@karj7072 4 жыл бұрын
im getting 405 error after clean and restart the server!.
@kiran7087
@kiran7087 4 жыл бұрын
After clicking back button,it is showing "document expired" error but i wanna login page there also,what i have to do sir please give me suggestion
@princedey6536
@princedey6536 7 жыл бұрын
Sir, is there a way to achieve this by using RequestDispatcher instead of SendRedirect? Because the page that i send the user displays some data that i have set by using request.setAttribute() hence need to forward request and response. With requestdispatcher upon hitting back page gives cache miss error. Upon reloading the same page reappears.
@harshitkumar9708
@harshitkumar9708 5 жыл бұрын
I am getting same error. Did you find the solution yet?
@imwallet3272
@imwallet3272 3 жыл бұрын
Sir, .jsp portal secured or .net portal secured (For Transactional purpose) please suggest..
@guttamallapavankumar1145
@guttamallapavankumar1145 2 жыл бұрын
Thanks for the solution, but here is one more problem that when we back button more than one time and refresh the page, the browser is asking for resubmission, if we click continue then it is displaying that welcome page again. Then also there no security for the information. Is there any solution for that, please convey the solution.
@rameshramadugu1602
@rameshramadugu1602 3 жыл бұрын
Hi sir, When i clicked on logout button ,why Logout.java is not working
@bhavanishankar4799
@bhavanishankar4799 5 жыл бұрын
Not working for my project
@omkaar87
@omkaar87 7 жыл бұрын
after implementing this code it gives "Confirm Form Resubmission Press the reload button to resubmit the data needed to load the page. ERR_CACHE_MISS " error and after refreshing page it forcefully resubmit previous things and opens that page
@user-a2-23
@user-a2-23 Жыл бұрын
I too got the same errors.If you found the solution please tell
@Sahas_H_S
@Sahas_H_S Жыл бұрын
​@@user-a2-23solved?
@kathirvelanm991
@kathirvelanm991 3 жыл бұрын
Sir what if we click back button on videos.jsp??
@rajarawal1457
@rajarawal1457 4 жыл бұрын
sir, if clicked multiple times back button , i can see the secure page. how to fixe it. thank you sir
@shashikantkushwaha7098
@shashikantkushwaha7098 7 жыл бұрын
Sir if i logout from one account its logout from all other account from same browser.
@sankalparora9261
@sankalparora9261 4 жыл бұрын
Great stuff.
@muzamirumbaziira5206
@muzamirumbaziira5206 7 жыл бұрын
Thanks a million times Naviir but what is Aliens
@deepdeshmukh9339
@deepdeshmukh9339 7 жыл бұрын
Dear Sir, i have a request... how can i do same catch control in servlet.. because i dont want to use jsp page...so how can i do this.your answear is so important for me.. requirment is database with servlet and catche control..please uplod video on this.
@27SharathK
@27SharathK 5 жыл бұрын
Getting error on response, responce cannot be resolved... Any solution?
@deepudinesh5288
@deepudinesh5288 7 жыл бұрын
after login if we click the back button it will go back to login page.it is also a security flop.
@stevewilsonraj
@stevewilsonraj 2 жыл бұрын
this method is working in chrome but not in firefox sir
@basavarajus5066
@basavarajus5066 2 жыл бұрын
I am calling LogiVerificate Servlet program from login,html file Once i login successfull i should not go to login.html file itself before click on the logout button by clicking back button of browser Can you help me how to do this login.html=>LoginVer(servlet program)
@amanraturi1268
@amanraturi1268 6 жыл бұрын
where can i get its code?
@coding_dunes
@coding_dunes 4 жыл бұрын
how to do this process in flask
@sachinbhalla14
@sachinbhalla14 5 жыл бұрын
The Problem Will be Same if We Double Click On The Back Button We Can See The Welcome Page As Well As video Please anyOne Tell it Me What is it Happing??
@cartoonworld5211
@cartoonworld5211 4 жыл бұрын
It's not working for me..it's going back to the page
@mssuper9321
@mssuper9321 7 жыл бұрын
the header for back button is not working
@rupadevigujjari2202
@rupadevigujjari2202 6 жыл бұрын
excellent..
@priteshshinde6779
@priteshshinde6779 7 жыл бұрын
Please make a video on database connectivity as soon as possible Atleast try to make it first rather than form validation using JavaScript
@vinodluhar4505
@vinodluhar4505 7 жыл бұрын
javascript is not so effective. If client side uncheck "allow javascript", all validations will be fail.
@priteshshinde6779
@priteshshinde6779 7 жыл бұрын
Not like that
@priteshshinde6779
@priteshshinde6779 7 жыл бұрын
I know client side validation is important But it is not mandatory But database connectivity is most important part as well as it is a part of JSP or Servlet code But validation is done by JavaScript which is totally different language
@kedarpatra9517
@kedarpatra9517 4 жыл бұрын
Sir, How to Store and Retrieve image from Database
@sumeetd1875
@sumeetd1875 4 жыл бұрын
Thank you man
@RAHULKUMAR-fn1fj
@RAHULKUMAR-fn1fj 4 жыл бұрын
whenever i submit i got the Nullpoint Exception error......how to reslove it
@chungwm
@chungwm 4 жыл бұрын
something to do with ==null or .equals(null)
@anujkumarsingh330
@anujkumarsingh330 6 жыл бұрын
Not working
@prabhavathib871
@prabhavathib871 4 жыл бұрын
Awesome Teaching!!! one doubt. Sir You set the header for wecome.jsp & videos.jsp. After logout if i go to previouse welcome.jsp page it shows login page becz we check the condition if(username==null) { response.sendRedirect("login.jsp"); } But if i move to videos.jsp it shows the exact page ?? Why ?? How ?? Kindly Make a separate video for this sir
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
Heloooo it's not working
@tharindudhananjayamunasing5533
@tharindudhananjayamunasing5533 7 жыл бұрын
it's not working in firefox.try in chrome
@bhagyashridevkhile3563
@bhagyashridevkhile3563 6 жыл бұрын
hello sir plz add video for CRUD Operation using JSP servlet......
@amanvirani2760
@amanvirani2760 6 жыл бұрын
Thank You
@mohamedessabir
@mohamedessabir Жыл бұрын
thanks
@rohannarkhede7479
@rohannarkhede7479 5 жыл бұрын
You are Superb ^_^
@javawith24
@javawith24 7 жыл бұрын
Sir how to insert password in database in encrypted format sir please make video
@something......something3844
@something......something3844 6 жыл бұрын
hi guys , the only solution to the problem is using meta tags and javascript in jsp pages
Login using Servlet and JSP |  JDBC | Part 3
16:25
Telusko
Рет қаралды 114 М.
Login using Servlet and JSP practical  Part 1
17:35
Telusko
Рет қаралды 449 М.
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Prevent Browser Back Button after Logout Laravel 8
9:37
Learn with Kazi Ariyan
Рет қаралды 10 М.
Login using Servlet and JSP
13:17
Telusko
Рет қаралды 113 М.
Сборник Эксклюзивов 2024 - Уральские Пельмени
1:33:24
Уральские Пельмени
Рет қаралды 702 М.
#10 Servlet and JSP Tutorial | HttpSession | Cookie
11:39
Telusko
Рет қаралды 272 М.
API vs SDK: What’s the Difference?
3:42
Klippa
Рет қаралды 11 М.
How JSP translated into Servlets?
12:54
Telusko
Рет қаралды 229 М.
Login using Servlet and JSP
19:56
CS CORNER Sunita Rai
Рет қаралды 29 М.
MVC using Servlet and JSP
10:19
Telusko
Рет қаралды 215 М.
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН