dourvas 0 Newbie Poster

Hallo,

I have made a login system using sessions. It have been working fine for 3 months. The last week some problems are occuring. First let me write the code i use.

There is a mysql database which contains all the data necessary.
There is also a form which the user writes his username an password. A query searches into the database and if those data exists

session_regenerate_id();
session_register("authenticated"); 
			$member = mysql_fetch_assoc($result);//the query executes fine
			$_SESSION['SESS_MEMBER_ID'] = $member['member_id'];
			$_SESSION['SESS_FIRST_NAME'] = $member['firstname'];
			$_SESSION['SESS_LAST_NAME'] = $member['lastname'];
			$_SESSION['SESS_CLASS'] = $member['class'];
	   	        $_SESSION['SESS_FATHERSNAME'] = $member['fathersname'];
			$_SESSION['SESS_LOGIN'] = $member['login'];
	 
session_write_close();

In every page(there are many pages), i start the session and then i say hallo to the user $_SESSION

Till now everything were going perfect. throught last week when i log in the hallo massage doesnt always shows. This means that i am lot logged in. But if i refresh the page (sometimes 4-5 times) it shows the message. It is a serious problem because when i am logged in i have rights to see priviliged pages that are very important for the functioning of the site. Now i have to log in and when i have to visit a priviliged page, i must refresh it several times in order for me to see it.

do u have any ideas????

Thank u in advance