What is on Your Mind?

Come inside and relax a while. Discuss whatever is on your mind. New members can introduce themselves. However, technical Q&A should happen in our other forums.

New Login Button for UNIX.COM

👤 Login to reply
 
Thread Tools Search this Thread Display Modes
    #15  
Old 5 Days Ago
Neo's Unix or Linux Image
Neo Neo is offline Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 18 July 2018, 1:41 PM EDT
Location: Asia pacific region
Posts: 14,563
Thanks: 1,030
Thanked 1,431 Times in 694 Posts
Hi,

I changed the login code to just simply and quickly login and go back to the page you were viewing:

Was (ending code):

Code:
do_login_redirect();

Now:
Code:
  $goto = "Location: ".create_full_url($vbulletin->url);
   header($goto);
   exit;

It is faster and easier than all the slow redirects so the user could (original code) read the mostly useless "cookie cleared" and other login (and logout) messages.

Now, it just logs in and goes to the page you were looking when you logged in, fast and without messages.

Sponsored Links
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Login in Unix manish.s Web Programming 2 06-22-2009 01:52 AM
Changing middle mouse button for pasting to right mouse button in cygwin rxvt sayeo UNIX for Dummies Questions & Answers 2 03-14-2008 09:55 PM
Need UNIX Login ... sakthiu Shell Programming and Scripting 5 08-20-2007 12:39 PM
UNIX login ID rambo15 UNIX for Advanced & Expert Users 3 06-29-2007 03:15 PM
Script for using the Back button and the Close button mdgibson UNIX for Dummies Questions & Answers 1 09-27-2005 09:18 AM



All times are GMT -4. The time now is 06:11 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?