On login success, redirect to the specific URL

Ryuji wrote a new interesting preload.

When a user do login successful, he is redirected to the previous page. But, you may want to forward him to the specific URL.

For example, there is the site which allows to login for only administrators. In these case, administrators on login success want to be forwarded to the control panel.

Source code he shown is available as a preload. Copy & Paste, and save as XOOPS_URL/preload/loginRedirect.class.php.

Advertisements
This entry was posted in XOOPS Cube. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s