New Simplified Log Out for UNIX.COM


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? New Simplified Log Out for UNIX.COM
# 1  
Old 07-13-2018
New Simplified Log Out for UNIX.COM

Hi,

I changed the logout code to just simply log out and go back to the page you were viewing:

Was (ending code):

Code:
eval(standard_error(fetch_error('cookieclear', create_full_url($vbulletin->url), $vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q']), '', false));

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 logout messages.

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

Smilie
This User Gave Thanks to Neo For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Simplified Code? Acceptable?

Hi Folks - I have the following peice of code that I believe is uncecesarily long and I modified it to shorten it up. I was hoping one could comment and confirm my approach was acceptable? Original: if then pushd "${_INTRAPATH}" #Search for lines in... (1 Reply)
Discussion started by: SIMMS7400
1 Replies

2. What is on Your Mind?

Simplified Registration Page with nCaptcha

At Ravinder's request, I have simplified the new member registration page on both mobile and desktop: Mobile: https://www.unix.com/members/1-albums214-picture909.jpeg Desktop (big image): https://www.unix.com/members/1-albums215-picture907.png (2 Replies)
Discussion started by: Neo
2 Replies

3. Shell Programming and Scripting

Simplified file conversion

Hi All, I have a file like below Topic:price PartitionCount:5 ReplicationFactor:3 Configs: Topic: price Partition: 0 Leader: 13 Replicas: 13,15,11 Isr: 11,13 Topic: price Partition: 1 Leader: 14 Replicas: 14,11,12 Isr: 11,12,14 ... (4 Replies)
Discussion started by: manas_ranjan
4 Replies

4. Shell Programming and Scripting

Simplified awk script for if else statements

Hi, The below awk script that i did is working fine. It gives me the results that i want. But, the script is not smart and very long as i have 8 conditions to meet. The sample script below only show 2 conditions. awk 'BEGIN{FS=OFS=" ~ |\t"} {if (($7>$9) && ($6>$8)){ Ql= $7-$6; Sl=... (6 Replies)
Discussion started by: redse171
6 Replies

5. Linux

Simplified find command to find multiple file types

Hi, I'm using the following command to find the multiple requierd file types and its working fine find . -name "*.pl" -o -name "*.pm" -o -name "*.sql" -o -name "*.so" -o -name "*.sh" -o -name "*.java" -o -name "*.class" -o -name "*.jar" -o -name "*.gz" -o -name "*.Z" -type f Though... (2 Replies)
Discussion started by: vickramshetty
2 Replies

6. UNIX for Advanced & Expert Users

unix log file

Hi I want to know where the unix log file is stored I couldnt fınd anythıng under var/log directory Regards (8 Replies)
Discussion started by: tjay83
8 Replies

7. Shell Programming and Scripting

alert_oss.log oracle log file in hp-unix

Hi I have go this alert_oss.log that is basically capturing all the oracle errorlogs.Now the problem is that it is one huge file and to see log of some particular date i tried cat alert_oss.log | grep 'Mar 25 10:44:45 2007' > alert_25.txt is not giving me the required output. pls suggest ... (3 Replies)
Discussion started by: Assassin
3 Replies

8. Shell Programming and Scripting

Log of the Unix script

Hi, I have written a Unix shell script that does different things like copying the files from location to another etc depending on various conditions. There are print statements in the script. The problem is I want the script to log the activity in a file right from the moment the script... (1 Reply)
Discussion started by: srinik20
1 Replies

9. Cybersecurity

UNIX error log

A system administration utility has recently been installed at the SCO Openserver (UNIX) servers of our bank. While receiving the error log files of this utility, we have noted the following warning messages: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> · ... (3 Replies)
Discussion started by: eysheikah
3 Replies

10. Cybersecurity

UNIX error log

system administration utility has recently been installed at the SCO Openserver (UNIX) servers of our bank. While receiving the error log files of this utility, we have noted the following warning messages: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> · ... (0 Replies)
Discussion started by: eysheikah
0 Replies
Login or Register to Ask a Question