Jump to content

[SOLVED] how do i move my session?


stuart7398

Recommended Posts

Hi.

When the user logs in they see their links in the same page (as below).

I moved the SESSION but it chopped half the page off when the user logged out.

 

How can i get these links to show somewhere else, say the left nav bar?

Thanks,

Stuart.

 

 

<?php

require_once('auth.php');

?>

 

 

<?php $page_title = 'My Profile'; @ require_once ('../inc/head.php'); ?>

<div class="members_nav"><a href="members/member-homepage.php">My Homepage</a>  | <a href="members/member-profile.php">My Profile</a> | <a href="members/member-pictures.php">My Pictures</a> | <a href="members/logout.php">Logout</a></div>

<?php

require '../connect/config.php';

require '../connect/opendb.php';

$data = mysql_query("SELECT * FROM members WHERE member_id = '$SESS_MEMBER_ID' ") OR DIE (mysql_error());

$info = mysql_fetch_array( $data );

{

Print "<p><br /><h1>Welcome Back ".$info['firstname']." ".$info['lastname']."</h1></p>";

}

?>

 

</div></div>

<?php

@ require_once ('../inc/leftnav.php');

@ require_once ('../inc/rightnav.php');

@ require_once ('../inc/foot.php');

?>

Link to comment
https://forums.phpfreaks.com/topic/100187-solved-how-do-i-move-my-session/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.