Very Simple Login System

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Akonkagva
Forum Members
Forum Members
Posts: 11
Joined: Mon Aug 31, 2009 8:09 pm

Very Simple Login System

Post 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 !
Duketown

Re: Very Simple Login System

Post by Duketown »

Akonkagva,

Why not use modules Front End User management and CustomContent?

Duketown
Akonkagva
Forum Members
Forum Members
Posts: 11
Joined: Mon Aug 31, 2009 8:09 pm

Re: Very Simple Login System

Post 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.
Last edited by Akonkagva on Fri Jan 15, 2010 4:32 pm, edited 1 time in total.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Very Simple Login System

Post by Jeff »

Akonkagva
Forum Members
Forum Members
Posts: 11
Joined: Mon Aug 31, 2009 8:09 pm

Re: Very Simple Login System

Post by Akonkagva »

Thank you ajprog, it made some little sence....
Post Reply

Return to “Developers Discussion”