Get support from Xavier Media
It is currently Sun Dec 08, 2013 7:52 pm

All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cookie Password Protection (latest version)
PostPosted: Mon Apr 17, 2006 3:58 pm 

Points:
I have installed the cookie password protection and modified the settings.php where appropriate.

I go to the setup.php file and recieve the following two errors.
#!/usr/local/bin/php
Warning: Cannot modify header information - headers already sent by (output started at /home/cust1/user1220638/html/cidm/members/codelock.php:2) in /home/cust1/user1220638/html/cidm/members/codelock.php(4) : eval()'d code(1) : eval()'d code on line 5

Cookies Not OK
If your web broswer is not accepting cookies you must turn cookies ON, otherwise you will not be able to login at your own protected pages.

I have checked my cookie settings both on IE and on Mozilla and they are both set to allow cookies.

Any suggestions on how to fix either of these issues?

Thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 3:58 pm 

Points:
How do you like the setup at the setup ? Are you accepting cookies you must turn cookies ON otherwise you will not be able to login at your own protected pages? No I don't think there are any. Don't mention it.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 4:56 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
Code:
#!/usr/local/bin/php
Did you add the above line yourself? Because the above line is not in the script you got from us.

The problems you get are not cookie related, they are because of this line:
Code:
#!/usr/local/bin/php
To be able to run cookie passwor dprotection you must remove that line. If you web hosting company do not allow you to remove that line you should move your web page to some one else.

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 5:01 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
If you are required to have this line as the first in your scripts:
Code:
#!/usr/local/bin/php
Then you should also include it as the first line in codelock.php and all your other PHP scripts too.

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject: Still having issues
PostPosted: Mon Apr 17, 2006 5:29 pm 

Points:
I removed this line from all of our code: #!/usr/local/bin/php which removed the error from the top of the page. However, I am still recieving an error for the cookies.

Cookies Not OK
If your web broswer is not accepting cookies you must turn cookies ON, otherwise you will not be able to login at your own protected pages.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 5:34 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
Look like the cookies can't be set on your computer. What is your cookie domain?

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 5:36 pm 

Points:
$CookieDomain = "infomanagementcenter.com";


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 5:45 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
Do you access the setup like infomanagementcenter.com/directory/setup.php or as http://www.infomanagementcenter.com/directory/setup.php?

If you are going to use both with and without www. you need to set your cookie domain as .infomanagementcenter.com instead of infomanagementcenter.com.

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 5:49 pm 

Points:
I have tried it both with the '.' in front of infomanagementcenter.com and with the IP address. I still recieve the error.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 5:54 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
If you are accessing the setup.php script with the server IP in the URL in the address bar of your web browse, you can't put your domain name as cookie domain.

If you use infomanagementcenter.com as cookie domain, then you should access the setup script as infomanagementcenter.com/directory_where_you_have_the_files/setup.php

A cookie that is set on http://www.sampleaddress.com can't be accessed from someothersubdomain.sampleaddress.com is can only be accessed from http://www.sampleaddress.com.

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 5:57 pm 

Points:
Currently I am accessing the setup.php with the ip address. I have the same IP address specified for the cookie in the setting.php, but I still get the same error.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 6:28 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
I have sent you an email with a new setup file so that you will only get a warning and can continue with the setup.

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 17, 2006 7:14 pm 

Points:
I replaced the files you sent and was able to continue with the setup. However, I think I need to figure out what is wrong with the cookies because I can't login with the user name and password provided in the setup.php


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Apr 18, 2006 3:06 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
I suggest you set www.infomanagementcenter.com as your cookie domain name and then only access the protection scripts on www.infomanagementcenter.com and never use just infomanagementcenter.com. I would also completly ignore the IP address and only use a domain name with cookie protection.

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 19, 2006 4:59 pm 

Points:
I have the cookies working according to the setup.php...but I cannot login with the admin user name and password it provided me with when I access the admin.php.

We have the same login page from the free trial version in place.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Registered users: No registered users


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]