Jump to content

Redirect back after Login and Logout


William Santos
 Share

Recommended Posts

File Name: Redirect back after Login and Logout

File Submitter: William Santos

File Submitted: 11 May 2013

File Category: Utilities

Supported Versions: IP.Board 3.4.x



Introduction

This hook will allow you to redirect your members to the page they were when they clicked in the login/logout button, immediately before they logged in/out. This hook is helpful when you have a website external to IPB and you allow your members to login and logout in IPB through it.


NOTES

This hook won't work redirect you back if you're using a proxy that removes $_SERVER['HTTP_REFERER']. This variable is required.


Terms and Conditions

You may:
- Edit the hook's code. BUT by doing this you will not receive support from its creator.
- Redistribute everywere
You may not:
- Attempt to sell this hook. It is free.



here to download this file

Link to comment
Share on other sites

I'm missing the purpose of this hook, IPB already redirects you to the page where you clicked login as long as there is a referer.


Logout instead redirects to the default application so I can see why someone would want to use the hook.


You should read the description before asking that questions.

This hook is helpful when you have a website external to IPB and you allow your members to login and logout in IPB through it.


Is there some way to disable this from working on the mobile skin? So that when logging in on a mobile device it always redirects normally and not back to the login page. That'd be nice!

Hello. I may include that in future versions.

Link to comment
Share on other sites

  • 6 months later...
  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...