Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Making it so they don't have to re-login everytime

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 06-03-2005, 09:01 AM
  minorgod's Avatar 
minorgod minorgod is offline
 

X-Adept
  
Join Date: Sep 2002
Location: Arivaca, AZ
Posts: 402
 

Default

Naaaa. I'm not a big fan of instant messengers. There was about a month long period back around 2001 that I used several instant messengers and I ended up getting nothing done because people kept bugging me constantly and I ended up leaving my status set to "away" all the time so I figured, why bother?

Anyway, if you want to talk, just PM me through the forum and I'll be happy to give you my direct e-mail address. During the day, that's almost as good as a messenger client since I respond to all new mail as it comes in.
__________________
www.brettbrewer.com
Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more.
Reply With Quote
  #52  
Old 06-12-2005, 07:15 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

I have a fresh install of 4.0.13 and I can say that the mod given does not work on this version. If you check the box it doesn't login, if you don't check the box it still doesn't login.

It appears that purchasing this mod will be the only fix. But $74.99 is a hefty price for a small addition.
Reply With Quote
  #53  
Old 04-11-2006, 02:17 AM
 
subzero subzero is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 238
 

Default wont log in without tick box ticked

all seems well with this mod except if u dont tick the remember me box it doesnt log anyone in
anyone found how to get round this????
__________________
Version 4.0.17
Reply With Quote
  #54  
Old 04-11-2006, 08:29 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

We've lowered the price for Remember Me from $74.99 to $54.99.

http://www.websitecm.com/x-cart-mods/remember-me.html
Reply With Quote
  #55  
Old 04-21-2008, 05:41 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Making it so they don't have to re-login everytime

I know that I'm taking you money out but I'm more for the open source whenever we talk about small programs or projects. For the 4.1 version users just make this simple change:
In auth.php (in the root) find the line

PHP Code:
include_once $xcart_dir."/init.php"

and change it with

Edit: Thread was moved to a new thread.

This will keep the user session id for 6 months and everyone who has been logged in will be remembered during that period. What is even more important, anonymous users cart will stay remain. I'm currently work on the wishlist to allow anonymous users to use it without registration (without pain in the ass).

Best regards,
virtual@croatia
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
  #56  
Old 04-21-2008, 09:10 AM
 
Nadeem Nadeem is offline
 

Advanced Member
  
Join Date: Sep 2006
Posts: 56
 

Default Re: Making it so they don't have to re-login everytime

Quote:
Originally Posted by virtual@croatia
I know that I'm taking you money out but I'm more for the open source whenever we talk about small programs or projects. For the 4.1 version users just make this simple change:
In auth.php (in the root) find the line

PHP Code:
include_once $xcart_dir."/init.php"

and change it with

PHP Code:
#
# If the user has been here in the last 6 month, extract the session ID from a cookie
#
if (!empty($HTTP_COOKIE_VARS["xsessionid"]))
    
$HTTP_POST_VARS["xid"] = $HTTP_COOKIE_VARS["xsessionid"];

include_once 
$xcart_dir."/init.php";

#
# Keep user session ID in a cookie for 6 months
#
if (empty($HTTP_COOKIE_VARS["xsessionid"]) && !empty($XCARTSESSID))
    @
setcookie("xsessionid"$XCARTSESSIDtime()+3600*24*180); 


This will keep the user session id for 6 months and everyone who has been logged in will be remembered during that period. What is even more important, anonymous users cart will stay remain. I'm currently work on the wishlist to allow anonymous users to use it without registration (without pain in the ass).

Best regards,
virtual@croatia

thanks alot, i was looking for this..
__________________
X-Cart 4.4.5 | Linux/Apache | PHP 5.2.17 | MySQL 5.0.77 | FireFox
Reply With Quote
  #57  
Old 04-28-2008, 12:12 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Making it so they don't have to re-login everytime

Will this work for 4.0.x? I realize that there's no init.php in 4.0.x, but other than that, can this be adapted?
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #58  
Old 04-28-2008, 01:30 AM
 
Richard Walkling Richard Walkling is offline
 

Member
  
Join Date: Apr 2004
Posts: 22
 

Default Re: Making it so they don't have to re-login everytime

I added this to our cart on Friday - and had a number of reports over the weekend that Add tocart buttons were not working - NEVER had this problem before and this was the only change - so I have removed it.

v.4.1.8
php 5.1.6
mysql 5.0.22

#
# If the user has been here in the last 6 month, extract the session ID from a cookie
#
if (!empty($HTTP_COOKIE_VARS["xsessionid"]))
$HTTP_POST_VARS["xid"] = $HTTP_COOKIE_VARS["xsessionid"];

include_once $xcart_dir."/init.php";

#
# Keep user session ID in a cookie for 6 months
#
if (empty($HTTP_COOKIE_VARS["xsessionid"]) && !empty($XCARTSESSID))
@setcookie("xsessionid", $XCARTSESSID, time()+3600*24*180);
__________________
Richard
4.7.12
Reply With Quote
  #59  
Old 04-28-2008, 01:55 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Making it so they don't have to re-login everytime

Quote:
Originally Posted by Richard Walkling
I added this to our cart on Friday - and had a number of reports over the weekend that Add to cart buttons were not working - NEVER had this problem before and this was the only change - so I have removed it.

I'm really sorry that you had problems with it. It's the first version of the code and sometimes it simply doesn't work from the first shot. I've opened a new thread
with new version of the code. This version corrects an error which I've found (maybe is the one you had, maybe not).
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
  #60  
Old 04-28-2008, 02:01 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Making it so they don't have to re-login everytime

Quote:
Originally Posted by imexhouse
Will this work for 4.0.x? I realize that there's no init.php in 4.0.x, but other than that, can this be adapted?

I don't have 4.0 version so I don't know. You should try it on a testing server to see if it works.
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:20 PM.

   

 
X-Cart forums © 2001-2020