New Login Button for UNIX.COM


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? New Login Button for UNIX.COM
# 15  
Old 07-13-2018
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.

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Login to UNIX from the browser.

Hi All, I need to login to the UNIX server from the browser. can you please tell me the procedure? Thanks Sarwan (5 Replies)
Discussion started by: sarwan
5 Replies

2. Web Development

Login in Unix

Can anyone plz share the HTML code for login in UNIX. I am not able to verify the password. (2 Replies)
Discussion started by: manish.s
2 Replies

3. UNIX for Dummies Questions & Answers

Unix Id from Window Login ID

Hello All, My Problem is -> How can we get UNIX id from open mail authentication (Windows ID) in UNIX. In following command we are using domain name, which may change in your reference. As, if we use following command. ypcat passwd | grep rohitp | cut -d: -f5 | cut -d, -f1 => we get... (0 Replies)
Discussion started by: pandey.rohit
0 Replies

4. UNIX for Dummies Questions & Answers

Changing middle mouse button for pasting to right mouse button in cygwin rxvt

Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
Discussion started by: sayeo
2 Replies

5. UNIX for Dummies Questions & Answers

Unix Login problem ... help!!!!!

Hi I had asked my system admin to Disable direct login for xxxx id since it was a generic ID. If someone wanted to login to xxxx id on same system, they should initially login with their yyyy id(personal ID) and then su to xxxx userid.(wanted to track who had all logged in, it would be diffult... (6 Replies)
Discussion started by: rakeshou
6 Replies

6. Shell Programming and Scripting

Need UNIX Login ...

Hi, I dont have UNIX os on my pc. I want to learn UNIX system programming. How to get this OS or Can i get any remote login account ? Thanks. Bye... (5 Replies)
Discussion started by: sakthiu
5 Replies

7. UNIX for Advanced & Expert Users

UNIX login ID

Hello World: I need to have a user ID called devapp in the passwd and shadow file for a certain application to start. The problem is that I do not want users to be able to use the devapp login ID to log directly into the system. The users sometimes need to start and stop the... (3 Replies)
Discussion started by: rambo15
3 Replies

8. UNIX for Advanced & Expert Users

UNIX Auto-login

I am trying to bypass the login screen when the system boots and auto-login to open windows. I believe I need to modify the S99dtlogin but I don't know what to add/modify. Has anyone ever created an auto-login for Solaris 8? (1 Reply)
Discussion started by: nvanduyne
1 Replies

9. UNIX for Dummies Questions & Answers

Script for using the Back button and the Close button

Here's a question I have for anyone that might be able to help me: I can write a html script that will allow the user to return to the previous page using the back button, and I can write a script that will allow the user to return to the previous page using the close button, but...is there a... (1 Reply)
Discussion started by: mdgibson
1 Replies

10. UNIX for Dummies Questions & Answers

Remote Login (Unix)

Is there any way I can disallow remote login on a m/c (3 Replies)
Discussion started by: DPAI
3 Replies
Login or Register to Ask a Question
CatalystX::SimpleLogin::TraitFor::Controller::Login::WitUseriContributed PerCatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect(3pm)

NAME
CatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect - redirect users who login back to the page they originally requested. SYNOPSIS
package MyApp::Controller::NeedsAuth; use Moose; use namespace::autoclean; # One needs to inherit from Catalyst::Controller in order # to get the Does('NeedsLogin') functionality. BEGIN { extends 'Catalyst::Controller'; } sub inbox : Path Does('NeedsLogin') { # Redirects to /login if not logged in my ($self, $c) = @_; $c->stash->{template} = "inbox.tt2"; return; } # Turn on in config MyApp->config('Contoller::Login' => { traits => 'WithRedirect' }); DESCRIPTION
Provides the "login" action with a wrapper to redirect to a page which needs authentication, from which the user was previously redirected. Goes hand in hand with Catalyst::ActionRole::NeedsLogin WRAPPED METHODS
redirect_after_login_uri Make it use and extract "$c->session->{redirect_to_after_login}" if it exists. METHODS
$controller->login_redirect($c, $message) This sets the error message to $message and sets "$c->session->{redirect_to_after_login}" to the current URL. SEE ALSO
CatalystX::SimpleLogin::Controller::Login CatalystX::SimpleLogin::Form::Login AUTHORS
See CatalystX::SimpleLogin for authors. LICENSE
See CatalystX::SimpleLogin for license. perl v5.14.2 2012-07-CatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect(3pm)