| Author |
Message |
eleos111
Nuke Soldier


Joined: Feb 03, 2003
Posts: 28
Location: Greece
|
Posted:
Sat Jun 14, 2003 5:19 am |
  |
Hi.
Some of my users had permanent problems with Invalid Session so I decided to deal with it, since nothing worked out. I have made some modifications in posting.php (in modules/Forums folder) , added a field in the database under users table and also I have added an administration module were you can choose a user to NOT be checked for invalid session. If user is logged as administrator also invalid session WILL be checked whatever has been choosed for the specific user.
I know that this one creates a security hole for the specific user but until something better comes out I will use this one.
If you want to download it you can do it here:
http://www.kraksimo.com/modules.php?name=Downloads&d_op=getit&lid=2
Read readme.txt before applying this... |
|
|
   |
 |
Cyberclark
Elite Nuker


Joined: Nov 20, 2002
Posts: 237
|
Posted:
Sat Jun 14, 2003 9:39 am |
  |
Very nice addition!! Beats disabling sessions for the whole site! |
|
|
   |
 |
TrevorS
Corporal


Joined: Jun 02, 2003
Posts: 68
Location: Denver, Colorado
|
Posted:
Thu Jun 26, 2003 11:59 am |
  |
Thank You! This helped me out a lot! |
|
|
    |
 |
shb
Nuke Soldier


Joined: May 25, 2003
Posts: 27
|
Posted:
Tue Jul 08, 2003 5:24 pm |
  |
yes thank you. big thumbs up. |
|
|
    |
 |
Bridude
Private


Joined: Aug 08, 2003
Posts: 45
|
Posted:
Tue Aug 19, 2003 8:37 pm |
  |
this script was a gift from heaven. Thanks a ton!! |
|
|
   |
 |
geoffh
Nuke Cadet


Joined: Sep 22, 2003
Posts: 3
|
Posted:
Tue Sep 30, 2003 4:46 pm |
  |
Does anyone else have this script available for downloading? The site from the original poster appears to be offline... |
|
|
   |
 |
karzac
Nuke Cadet


Joined: Oct 17, 2003
Posts: 2
|
Posted:
Fri Oct 17, 2003 3:59 pm |
  |
yep i could do with it too |
|
|
   |
 |
Tank863
Lieutenant


Joined: Feb 21, 2003
Posts: 195
Location: Philadelphia
|
Posted:
Wed Oct 22, 2003 6:11 am |
  |
anyone have this script? or know of its where abouts?
I have one AOL user so far and they are the only one having problems. |
|
|
     |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Tue Feb 10, 2004 7:28 am |
  |
Trying to locate a copy.... |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
eleos111
Nuke Soldier


Joined: Feb 03, 2003
Posts: 28
Location: Greece
|
Posted:
Fri Feb 13, 2004 1:40 am |
  |
|
   |
 |
Myfish
Nuke Cadet


Joined: Feb 19, 2004
Posts: 6
|
Posted:
Thu Feb 19, 2004 12:56 am |
  |
bro your session check on off work wonder for my site.. It solved my invalid session instantly
Thankyou
I hv a question for u Can I just set the forum default so that it does not check the ip of every user. This becos most of my user surf on static IP network .. making me hv to do the session off for every new user
So since that the problem I just as well off the forum tracking permanently
Any advice
Hope to here from u soon |
|
|
   |
 |
eleos111
Nuke Soldier


Joined: Feb 03, 2003
Posts: 28
Location: Greece
|
Posted:
Fri Feb 20, 2004 1:05 pm |
  |
If you want just to disable session check in all cases you can disable the line:
| Code: |
| message_die(GENERAL_MESSAGE, 'Invalid_session'); |
Is number 213 in the file posting.php that is included in the zip file.
But you could let on session check for phpnuke admin users if you goto line 212 and replace the
| Code: |
| if(($check_on_off==0) OR (is_admin($admin))) { |
with
| Code: |
| if (is_admin($admin)) { |
Hope that helps.
PS: Note that I have added that only in post at forum. |
|
|
   |
 |
Myfish
Nuke Cadet


Joined: Feb 19, 2004
Posts: 6
|
Posted:
Mon Feb 23, 2004 8:35 pm |
  |
| eleos111 wrote: |
If you want just to disable session check in all cases you can disable the line:
| Code: |
| message_die(GENERAL_MESSAGE, 'Invalid_session'); |
Is number 213 in the file posting.php that is included in the zip file.
But you could let on session check for phpnuke admin users if you goto line 212 and replace the
| Code: |
| if(($check_on_off==0) OR (is_admin($admin))) { |
with
| Code: |
| if (is_admin($admin)) { |
Hope that helps.
PS: Note that I have added that only in post at forum. |
bro
tks for the code ..
Just to be sure what i supose to be doing is . when u say disable the code u mean delete the whole line of code right ..
the second code well is a copy and paste thing right ..
tks again |
|
|
   |
 |
Myfish
Nuke Cadet


Joined: Feb 19, 2004
Posts: 6
|
Posted:
Mon Feb 23, 2004 11:19 pm |
  |
Bro
i did this to the code
| Code: |
| /*message_die(GENERAL_MESSAGE, 'Invalid_session');}*/ |
and i got an error message
Parse error: parse error in /home/myfish/public_html/modules/Forums/posting.php on line 1232
any advice ? |
|
|
   |
 |
saladin
Nuke Cadet


Joined: Dec 28, 2003
Posts: 8
|
Posted:
Wed Mar 10, 2004 10:39 pm |
  |
ok i am admin and getting the invalid session any ideas? please let me know... BTW that error you are getting is bc of space at the last code:) |
|
|
   |
 |
|
|