Snippets tagged “redirect”
26 snippets use this tag.
- Automatic Logout after 15 minutes of inactive in phpPHP
To automatically log out a user after 15 minutes of inactivity in PHP, you can use the session mechanism provided by PHP.
- Displaying the Error Messages in Laravel after being Redirected from controllerPHP
In Laravel, you can use the withErrors method to pass error messages to a view after a redirect.
- How can I display the users profile pic using the facebook graph api?PHP
To display a user's profile picture using the Facebook Graph API in PHP, you can make a GET request to the /{user-id}/picture endpoint.
- How to disable registration new users in LaravelPHP
To disable registration of new users in Laravel, you can remove the registration routes from the web.php file in the routes folder.
- How to Display a Message if JavaScript is Turned OffJavaScript
If you have a content that will not function without JavaScript, you need to display a message with an explanation of the problem. In this snippet, we are going to have a look at 2 simple methods to display the content when JavaScript is turned off.
- How to do single sign-on with PHP?PHP
Single sign-on (SSO) allows users to authenticate once and gain access to multiple applications without having to re-enter their credentials.
- How to Manage a Redirect Request after a jQuery Ajax CallJavaScript
In this JavaScript tutorial, you will read and learn detailed information about the method used for managing a redirect request after a jQuery Ajax call.
- How to Redirect a Web Page in HTMLHTML
The meta tag with the http-equiv parameter set to Refresh is used to redirect a web page in HTML. Take a look at how you should do it. Practice with examples.
- How to Redirect a Web Page with ApacheApache
To redirect web pages in Apache you should add specific rules to a `.htaccess` on an Apache web server. Learn how to do it.
- How to Redirect a Web Page with PHPPHP
In PHP, you can use several functions to make a redirect from one web page to another. Learn how to do it accurately with W3docs.
- How to Redirect Mobile Devices With JavaScript and CSSJavaScript
Learn How to Redirect Mobile Devices With JavaScript and CSS. 1.JavaScript Method, 2. CSS @media Method. Fast solution for web developers.
- How to validate array in Laravel?PHP
In Laravel, you can use the validate method on the Validator facade to validate an array of form data.
- Htaccess: add/remove trailing slash from URLPHP
To add or remove a trailing slash from the end of a URL using an .htaccess file, you can use mod_rewrite to rewrite the URL.
- Laravel back buttonPHP
In Laravel, you can use the back function to redirect the user to their previous page.
- Laravel Socialite: InvalidStateExceptionPHP
The InvalidStateException is thrown by Laravel's Socialite package when the state parameter provided in the OAuth redirect URL does not match the one stored in the session.
- Laravel: redirect from controller to named route with params in URLPHP
In Laravel, you can redirect from a controller to a named route with URL parameters using the redirect() helper function.
- PHP generate file for download then redirectPHP
In PHP, you can use the header() function to send a "Content-Disposition" header to prompt the user to download a file.
- PHP header location-redirect doesn't work - why?PHP
There are several reasons why a PHP header location redirect may not work:
- PHP header redirect 301 - what are the implications?PHP
A 301 redirect in PHP using the "header" function tells the browser that the page has permanently moved to a new location.
- PHP: HTTP or HTTPS?PHP
In PHP, you can use the $_SERVER['HTTPS'] variable to check whether the current page is being served over HTTPS.
- Redirect to an external URL from controller action in Spring MVCJava
To redirect to an external URL from a controller action in Spring MVC, you can use the RedirectView class and return it from the controller action.
- Redirect with CodeIgniterPHP
In CodeIgniter, you can use the redirect() function to redirect the user's browser to a new page.
- Redirecting to authentication dialog - "An error occurred. Please try again later"PHP
This message typically indicates that there is an issue with the authentication process.
- Refresh a page using PHPPHP
You can refresh a page using PHP using the header function.
- setcookie, Cannot modify header information - headers already sentPHP
The error message "Cannot modify header information - headers already sent" typically occurs when a PHP script attempts to send a cookie or redirect the user's browser to a different page, but some output has already been sent to the browser.
- Symfony2: Redirecting to last route and flash a message?PHP
In Symfony2, you can redirect to the last route using the redirect function and passing in the referer option: