Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sun Aug 25, 2019 3:00 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: remember me button
PostPosted: Tue May 13, 2008 3:34 pm 
Offline
User avatar

Joined: Thu Jan 31, 2008 10:49 am
Posts: 23
Location: Amsterdam, Netherlands
I've done a remember me button for the login interface I'll post it here in case someone wants to use it.

Line 97 in file "a2customer/templates/default/index.tpl"
Code:
                        <tr align="center">
                                <td></td>
                                <td align="left"><input type="checkbox" name="remember"><font face="Arial,Helvetica, Sans-Serif" size="2"> Remember me next time.</font></td>
                                <td align="right"><input type="submit" name="submit" value="LOGIN" class="form_input_button"></td>
                        </tr>

Line 30 in file "a2customer/lib/lib/module.access.php"
Code:
           if(isset($_COOKIE['PHPSESSID'])){
                setcookie("PHPSESSID", "",time()-60*60*24*365, "/");
           }

Line 102 in file "a2customer/lib/lib/module.access.php"
Code:
                        if(isset($_POST['remember'])){
                                setcookie("PHPSESSID",$_COOKIE['PHPSESSID'], time()+60*60*24*365, "/");
                        }

:shock:

Sorry, but this is not working. It stops working when the session expires in the server, jeje. I didn't think about that. I'll try to fix it.

Any ideas?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group