Page 1 of 1

2 on the same site

Posted: Sat Dec 23, 2006 7:24 pm
by John
Script URL:http://www.joinjohninprayer.com/Copy%20 ... /gbook.php
Version of script:4.2
Hosting company:easy web
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:all

Write your message below:
running the guest book 2 times on the sime site has encountered a problem of when signing into 1 in a session that person cannot sign the other in the same session. as far a I know i have both in different folders and not related in any way is there a way so both can be signed into in the same session but still keep the protection of the single sign in for each book. many thanks for the answer

Posted: Sun Dec 24, 2006 10:38 am
by Klemen
You can try by naming sessions, for example change line 43 in gbook.php from

Code: Select all

session_start();
to

Code: Select all

session_name('GBOOK1'); session_start();
And in the second copy of Gbook change 'GBOOK1' to 'GBOOK2'

Make sure you close all browser windows and delete temporary Internet files before testing.

Haven't tested myself but should do the trick.

creates a new problem

Posted: Sun Dec 24, 2006 7:43 pm
by John
Changed the lines as instructed, on testing noticed the view of the security spam numbers disapeared. tried to put the GBOOK1 and 2 in line 107 without success but may have done it wrong. Certainly appreicate your help.
would also like help in as to how I can give public acess to reply on the prayer request gbook only? This will then finish my changes.
thanks
John

Posted: Mon Dec 25, 2006 2:42 pm
by Klemen
Ah, change the 2nd line in file "print_sec_img.php" the same as instructed above, then try again.

As for public replies that would require quite some editing and is out of the scope of my support.

Thank you for your support

Posted: Mon Dec 25, 2006 7:50 pm
by John
Thank again for your support if i can ever be of any support to you do not hesitate to make contact. thanks again
John