Author Topic: Vouchers/Coupons Admin Status Problem  (Read 2310 times)

0 Members and 1 Guest are viewing this topic.

inetbiz

  • eCommerce Strategy Consultant
  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 133
  • Karma: 22
  • SKYNET; T3; Apple Inc. Coincidence?
    • View Profile
    • Hosting for Creloaded Cart
Re: Vouchers/Coupons Admin Status Problem
« Reply #7 on: January 10, 2009, 10:31:26 AM »
in /includes/configure.php find:
Code: [Select]
 define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');

In your instance, I believe cookie patch will be /cart so those two lines would read:

Code: [Select]
define('HTTP_COOKIE_PATH', '/cart');
define('HTTPS_COOKIE_PATH', '/cart');

MAKE SURE THE HTTPS_COOKIE_DOMAIN matches your SSL certificate common name you used when registering the SSL certificate. You might also want to redirect request sent to domain.com to www.domain.com using linux apache module mod_rewrite See note at bottom...

EDIT .htaccess in /cart folder and add the following:

Code: [Select]
RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]
RewriteRule ^(.*)$ http://www.askapache.com/$1 [R=301,L]

You MUST be allow to modify directory options from apache configuration. The first line of the .htaccess file should have:

Code: [Select]
Options +MultiViews +FollowSymLinks -Indexes

### mod_rewrite Rules
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cart
... add rules here...
</IfModule>
Please note that RewriteBase is only used in the following situations:

Quote
The RewriteBase directive explicitly sets the base URL for per-directory rewrites. As you will see below, RewriteRule  can be used in per-directory config files (.htaccess). In such a case, it will act locally, stripping the local directory prefix before processing, and applying rewrite rules only to the remainder. When processing is complete, the prefix is automatically added back to the path. The default setting is; RewriteBase physical-directory-path

When a substitution occurs for a new URL, this module has to re-inject the URL into the server processing. To be able to do this it needs to know what the corresponding URL-prefix or URL-base is. By default this prefix is the corresponding filepath itself. However, for most websites, URLs are NOT directly related to physical filename paths, so this assumption will often be wrong! Therefore, you can use the RewriteBase directive to specify the correct URL-prefix.

If your webserver's URLs are not directly related to physical file paths, you will need to use RewriteBase in every .htaccess file where you want to use RewriteRule directives.

IF you are using a SHARED SSL CERTIFICATE there could also be some issues with the configuration of the HTTPS_COOKIE_DOMAIN. Match it to what was provided for you and TURN ON validate IP in your session settings.

Hosting 4 CRE Loaded has some affordable SSL certificates IF you would like to resolve a shared SSL certificate issue.
« Last Edit: January 10, 2009, 10:35:21 AM by inetbiz »

timoz

  • Newbie
  • *
  • Offline Offline
  • Posts: 12
  • Karma: 0
  • TiMoz on a hot day
    • View Profile
    • SabayaStyle.com e-shop
Re: Vouchers/Coupons Admin Status Problem
« Reply #6 on: January 09, 2009, 06:50:13 AM »

Dear Bruss.
is that what you are asking for?

in Admin Page
Configuration>Session:

Session Directory   /home/sabayast/public_html/cart/tmp   
Force Cookie Use   False   
Check SSL Session ID   True   
Check User Agent   False   
Check IP Address   False   
Prevent Spider Sessions   True   
Recreate Session   False

Tamer Ragheb
TiMoz............................
Consider the environment. Please don't print unless you really need to.

inetbiz

  • eCommerce Strategy Consultant
  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 133
  • Karma: 22
  • SKYNET; T3; Apple Inc. Coincidence?
    • View Profile
    • Hosting for Creloaded Cart
Re: Vouchers/Coupons Admin Status Problem
« Reply #5 on: January 07, 2009, 04:07:20 PM »
What are your cookie domains in the configuration file?

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Vouchers/Coupons Admin Status Problem
« Reply #4 on: July 22, 2008, 10:06:15 PM »
Hmm.  Not where I'd normally expect to find sessions issues. 

I'd try switching all the URL entries in your admin/includes/configure.php file to https:// and see if that helps.

Also -  is your server using mod php, php cgi, fast cgi or some other type of PHP install??   Have you tried updating PHP to the latest revision ??

Early PHP 5 releases inadvertently included some code which remained PHP 4 compliant when it should not have been - this included some sessions bugs which had previously been reported as fixed.  An update would be good.

timoz

  • Newbie
  • *
  • Offline Offline
  • Posts: 12
  • Karma: 0
  • TiMoz on a hot day
    • View Profile
    • SabayaStyle.com e-shop
Re: Vouchers/Coupons Admin Status Problem
« Reply #3 on: July 20, 2008, 04:00:00 AM »
This following is the last line in the file you mentioned to me:

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Thank you...
Tamer Ragheb
www.SabayaStyle.com
Tamer Ragheb
TiMoz............................
Consider the environment. Please don't print unless you really need to.

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Vouchers/Coupons Admin Status Problem
« Reply #2 on: June 26, 2008, 11:42:13 AM »
Also - we need to know whether you have your sessions setup for filebased or database based sessions.  This is among the last lines in your configure.php files - in this case the admin/includes/configure.php file


timoz

  • Newbie
  • *
  • Offline Offline
  • Posts: 12
  • Karma: 0
  • TiMoz on a hot day
    • View Profile
    • SabayaStyle.com e-shop
Vouchers/Coupons Admin Status Problem
« Reply #1 on: June 25, 2008, 01:59:25 AM »
I am countering this problem:  :-\

Inside the Admin Section >> "Vouchers/Coupons" >> "Coupon Admin" page
Status drop down list always showing by default *Active Coupons. *When I
select any other item from the list I found myself logged out and starting
from Admin Login again..! asking for my admin login and password!?

Can any one help me ???  :-\

David replied to asking the following:-

This is a session maintenance issue.
What version of the software are you running?
Are your cookies enabled?
What are the configuration values for your sessions? (Admin -> Configuration -> Sessions)

And the following was my answer:-

Software Version: CRE Loaded v 6.2[13.1 (SP1)]

Sessions    
Title    Value
Session Directory             /home/sabayast/public_html/cart/tmp
Force Cookie Use            False
Check SSL Session ID      True
Check User Agent           False
Check IP Address            False
Prevent Spider Sessions     True
Recreate Session             False

I hope someone can help in this issue!

Thank you  :)

Tamer Ragheb
TiMoz............................
Consider the environment. Please don't print unless you really need to.