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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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