Previous Thread
Next Thread
Print Thread
Rate Thread
#285414 05/24/2005 8:47 PM
Joined: Jun 2003
Posts: 88
Power User
Power User
Offline
Joined: Jun 2003
Posts: 88
this code displays the "welcome username" and "you are not loged in" stuff

<?php
// Require the library
require ("includes/main.inc.php");
include("languages/english/index.php");
// -------------

// ------------------------------
// Define any necessary variables
$Cat = get_input("Cat","get");
// -----------------

// Get the user info
$userob = new user;
$user = $userob -> authenticate("U_Groups, U_TimeOffset, U_FrontPage");
$Username = $user['U_Username'];

$html = new html;
if (!$user['U_Username']) {
//echo ("You are not Loged in. [<a href='http://spokejunkies.com/ubbthreads/login.php?Cat='>Login</a>]");
$html -> not_right ($ubbt_lang['notloggedin']. $ubbt_lang['WEL_PRIV_NO'],$Cat);
}
print ("Welcome ");
print ($Username);
print (". [<a href = 'http://spokejunkies.com/ubbthreads/logout.php?Cat='>Logout</a>]");

?>

i am currently inserting this code into an html page via include and it works great BUT when a user logs out it still shows them as loged in... any ideas?

Sponsored Links
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
sounds like a cookie issue


- Allen wavey
- What Drives You?
Joined: Jun 2003
Posts: 88
Power User
Power User
Offline
Joined: Jun 2003
Posts: 88
it works ok on the page driven by the ubbthreads index_outside.php page though that’s why i think it has to be a code issue, i didn’t change any of the cookie related stuff... its almost like it isn’t grabbing the updated information from the database... either way i will check out cookies again

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Is this script inside of your ubbthreads directory?

If not, then a couple of things:
Make sure you set cookies site wide "/" in the config file.

These:
require ("includes/main.inc.php");
include("languages/english/index.php");

May need complete server paths if they aren't inside of the ubbthreads directory. example:
require("/home/youruser/public_html/forums/main.inc.php");
etc...


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 696
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)