Page 1 of 1

Very Simple Login System

Posted: Fri Jan 15, 2010 3:55 pm
by Akonkagva
I'm trying to do very simple login system,
I'm trying using
   session_register('username');
  //successful login code will go here...
  //echo 'Success!';//we will redirect the user to another page where we will make sure they're logged in
  header( "Location:http://www.ucas-help.lv/" );
But on the main page of my website it appears that when I try to print out
$_SESSION[] it doesn't contain username at all....
Array ( [cmsuserkey] => 0738a188 [cms_admin_user_id] => 1 [cms_admin_username] => admin [tiny_live_textareas] => content_en )
It is all what this $_SESSION contain ......

How to insert(session_register) something into $_SESSION[] get it from array(session_is_registered) and then delete(logout) Using CMS Made Simple !

I really need your help !
I'll love all answer you give.
Thank you !

Re: Very Simple Login System

Posted: Fri Jan 15, 2010 4:17 pm
by Duketown
Akonkagva,

Why not use modules Front End User management and CustomContent?

Duketown

Re: Very Simple Login System

Posted: Fri Jan 15, 2010 4:30 pm
by Akonkagva
I wish I could use them, I have used them previously for some sites(both IUsers and FEU) but for this website I need to implement a bit different login system, therefore I ask, this questions....
How can I use $_SESSION
With smarty or something different.
I'm just a beginner in CMSMS therefore I ask this question.
Please help me to answer this question.

Re: Very Simple Login System

Posted: Fri Jan 15, 2010 5:03 pm
by Jeff

Re: Very Simple Login System

Posted: Fri Jan 15, 2010 5:26 pm
by Akonkagva
Thank you ajprog, it made some little sence....