Introduction This tutorial is about CodeIgniter 4 MySQL Login Logout example with MySQL database version 8. I will use CodeIgniter’s session library to store logged in user’s data. The session data get destroyed as soon as user logs out of the application. I am also going to create a custom config to use a key…

Posted in Codeigniter

CodeIgniter 4 MySQL Login Logout Example

Introduction This tutorial will show you how to login logout to/from an application with remember me functionality in CodeIgniter framework using set_cookie() function. You can use get_cookie() to retrieve the value for a given key from cookie and delete_cookie() function to delete from cookie for a given key. Sometimes you may need to remember username…

Posted in Codeigniter PHP

CodeIgniter Login Logout With Remembr Me

Introduction I will create an example to show you how to build jQuery AJAX based login logout using Python Flask MySQL. Flask is a light-weight framework for building rapid web application whose data are stored into MySQL database server. We will use HTML, AJAX technique using jQuery technology to call the REST API for login…

Posted in AJAX Flask jQuery MySQL Python

jQuery AJAX based Login Logout using Python Flask MySQL

Introduction In this post we are going to see how to give users opportunity to remember their login credentials through cookie so that next time they try to login to the application do not require username and password for login. In our previous tutorials we have seen how to login and logout from an application…

Posted in Flask Python

Python Flask Login Logout with Remember Me Option

Introduction This tutorial, jsp servlet login logout with remember me, will show you how to login to an application with remember me functionality. Sometimes we need to remember username and password for few days or months or years so that next time onwards a user can login without entering the username and password into the…

Posted in JSP Servlet

JSP Servlet Login Logout with Remember Me

Introduction JSF 2 javax.faces.application.ViewExpiredException that arises due to the click on a link or button when session gets expired. This tutorial will show you how we can deal with ViewExpiredException or view expired exception and we will show a meaningful message to the user with a link which will take him/her to the appropriate page…

Posted in Java JSF

JSF 2 javax.faces.application.ViewExpiredException

Introduction In this post we will see how to show warning message to user when session expires in a web application. So we will redirect user to login page once session has expired. We know that we let users login to the web application before a user can perform some sensitive activities like online transactions,…

Posted in JSP Servlet

Show Warning Message to User When Session Expires

In this article I am going to show you how to prevent user going back to the login page if a user is already logged in or redirect a user to the login page if the user is not already logged in. When browser caches the resources then clicking on the browser’s back button will…

Posted in JSP Servlet

Prevent user going back to login page if already logged in using filters