Jump to content

need help with session


jeppers

Recommended Posts

he there i am a newbe at this but i hope you will help me

 

my problem is that i can't get my session to work

 

i want to give user areas but i have no idea on how to do it.. i do have a session up which direct you to a login page but i don't no how to define an area hear is my code please help man in destress arrrrrrrrrr

<?php
include('title.inc.php');
// include MySQL connector function
if (! @include('mysql\conn_mysql.inc.php')) {
  echo 'Sorry, page unavailable';
  exit;
  }

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/49786-need-help-with-session/
Share on other sites

you need to be able to assign another session variable and set its value to the area(s) that they have access to. This could be one directory in your site or an array of values that could be checked against the the database to help control access to pages.

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.