I just had to do a similar task with an assignment. The way in which i accomplished this is as follows:
line 333 is function translatewherecond
i added a new str_replace for @session
called a new instance of jsession
got the session id and passed to a variable
put a str_replace statement for @session.
now i can add the session id variable to any of the queries without having to confine all of the queries to the same session parameter.
i just added
| Code: |
`session` = '@session'
|
as the where condition and it replaced it as needed
hope this helps