Community Forums

Important Notice:

Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.

Go Back   HostNine Community Forums > H9 Customer Forums > ModernBill

Notices

 
 
Thread Tools Display Modes
  #1  
Old 07-18-2007, 10:04 PM
jleemc44's Avatar
jleemc44 jleemc44 is offline
Junior Guru Wannabe
 
Join Date: Jul 2007
Location: Florida
Posts: 78
Send a message via AIM to jleemc44 Send a message via Yahoo to jleemc44
Default MB Logout Redirect

I was trying to find a way to redirect someone to something other than the ModernBill login page once the user logs out.

The answer I found from MB knolwagebase is a little disappointing:

Has anyone done it without the developer's version?

Quote:
Question: How do I change the ModernBill logout page?

Answer: By default the logout function will redirect a user to the login page.

You can set the redirect page to any page you want.

Note: This can only be modified in the developer\'s version.

1. Open the index.php file located in your install directory.

2. Find the logout case and change $https://$secure_url\".\"$index_page to the URL
you want the user to be redirected to after logging out.

Code:
case logout:
if (session_unset()) { session_destroy(); }
Header(\"Location: $https://$secure_url\".\"$index_page\");
break;

Example:
case logout:
if (session_unset()) { session_destroy(); }
Header(\"Location: https://www.yourdomain.com/newpage.php\");
break;

3. Save the file.
  #2  
Old 07-19-2007, 08:43 AM
kobra kobra is offline
Web Hosting Master
 
Join Date: Oct 2006
Posts: 595
Default

I do not have the developers ver and have not attempted what you want but this is what is in my index.php file:
Code:
   // ----------------------------------------
   // LOGOUT AND DESTROY ALL SESSION VARIABLES
   // ----------------------------------------
   case 'logout':
        if (session_unset()) { session_destroy(); }
        setcookie("myip",'',-216000);
        setcookie("ip",'',-216000);
        Header("Location: $https://$secure_url"."$index_page");
   break;
And this appears to be the same as they posted...

Make copies first. Then change this as directed and try it.
  #3  
Old 07-19-2007, 11:46 AM
jleemc44's Avatar
jleemc44 jleemc44 is offline
Junior Guru Wannabe
 
Join Date: Jul 2007
Location: Florida
Posts: 78
Send a message via AIM to jleemc44 Send a message via Yahoo to jleemc44
Default

Quote:
Originally Posted by kobra View Post
Code:
Header("Location:$https://$secure_url"."$index_page");
Your right! I changed it to
Code:
 Header("Location: http://www.mysitelocation.com";
This works well, I'm not sure what the part about the dev kit was.
  #4  
Old 07-21-2007, 01:17 AM
kobra kobra is offline
Web Hosting Master
 
Join Date: Oct 2006
Posts: 595
Default

Great!!!

And how it looked like it would work from the code....
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect main domain to folder without changing URL capcaunu Shared Web Hosting 3 03-25-2009 07:26 AM
node67 redirect H9Alex Maintenance/Outages 2 03-19-2009 10:28 AM
Auto redirect on checkout problem bandituk WHMCS 3 09-15-2008 02:03 PM
REDIRECT not WORKING? mossimo Reseller Hosting 0 03-10-2008 04:42 AM
How do You Redirect HTTP to HTTPS ? mginop Web Hosting 7 01-27-2008 01:48 PM


All times are GMT -5. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

Host Nine

Our mission began in 2006. Thousands of awesome clients later, we are now one of the most popular hosters in the world.
Most of this is because of our fantastic support. Join us, you'll be glad you did - that's a given.