Jump to content
Sign in to follow this  
prita_cantik

kenapa harus login terus?

Recommended Posts

oke, sy berhasil instal presta shop. tp klo mau login ke admin panel, sy terus kembali ke hal login (redirect). jadi sy hanya bisa masuk (kadang2) pake link admin panel dari link presta shop yang diberikan di email. kalopun sy masuk, mau edit ini itu, sy hrs bolak balik login. kenapa bisa gitu? sy pake windows 7, dan mozilla.

 

ada yg bisa nolongin???

 

thx

Share this post


Link to post
Share on other sites

di cpanel coba di ubah sedikit coding nya di file Cookie.php terletak di: prestashop/classes/Cookie.php

 

Langkah 1

di baris 65, coba cari coding seperti ini:

$this->_expire = isset($expire) ? intval($expire) : (time() + 1728000);

 

ubah nilai 1728000 menjadi 3600, jadinya seperti ini:

$this->_expire = isset($expire) ? intval($expire) : (time() + 3600);

 

Langkah 2

di baris 195, coba cari coding seperti ini:

AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()))

 

cukup tambahkan "//" (tanpa tanda kutip) persis di depan "AND" dan jadinya seperti ini:

//AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()))

 

di save dan coba reload browser sis..

Gud Luck :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More