How can I auto login a user when they register?

13 years 1 month ago - 13 years 1 month ago #159352 by piggybackup
Hi,

I'm working on a joomla site using CB and CBSubs. I'd like to reduce the number of clicks for my users and automatically log them into CB once they've successfully registered.

I'm fairly new to Joomla development and website development in general but have a fairly strong background in computer science and development, so please tailor your responses accordingly if possible :) .

It seems that if I were to setcookie()'s for the login and password in the conditional branch of the current code for successful registration, that I ought to be able to be able to use the cookies to authorize the user.

Or, if it makes more sense, I could use some JUMI code to call a PHP script, I just don't know commands the php script needs to run, and what files it needs to include/require in order to log a user in via cblogin.

Can the community direct me to the locations and filenames containing the PHP code used by the cblogin?

It would be great if feedback included hints or good reasons why this might be a bad idea.

Thanks very much for your help!

Very Best,
-Dan

If it's of any consequence, here's my version info:

CB: 1.3
CBSUBS: 1.1.0

Joomla:
System Information

Setting: Value

PHP Built on: Linux n17 2.6.33.1mtv2 #1 SMP Tue Jul 20 21:31:39 PDT 2010 i686
Database Version: 4.1.25-Debian_mt1
Database Collation: utf8_general_ci
PHP Version: 5.2.14
Web Server: Apache/2.0.54
Web Server to PHP interface: cgi-fcgi
Joomla! Version: Joomla! 1.5.20 Stable [ senu takaa ] 18-July-2010 18:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16

Sorry that I forgot to post it in the original request.

Please Log in to join the conversation.

13 years 1 month ago #159414 by piggybackup
Replied by piggybackup on topic Re: Can I auto login a user when they register?
If it's of any consequence, here's my version info:

CB: 1.3
CBSUBS: 1.1.0

Joomla:
System Information

Setting: Value

PHP Built on: Linux n17 2.6.33.1mtv2 #1 SMP Tue Jul 20 21:31:39 PDT 2010 i686
Database Version: 4.1.25-Debian_mt1
Database Collation: utf8_general_ci
PHP Version: 5.2.14
Web Server: Apache/2.0.54
Web Server to PHP interface: cgi-fcgi
Joomla! Version: Joomla! 1.5.20 Stable [ senu takaa ] 18-July-2010 18:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16

Sorry that I forgot to post it in the original request.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.154 seconds

Facebook Twitter LinkedIn