Welcome Guest, Not a member yet? Register   Sign In
DB Session is not possible when DB user doesn't have delete privlidge for security
#1

[eluser]yaniv[/eluser]
Hello,

On my production site, the DB user is not permitted to delete, as a security measure.
I built a cron garbage collection to keep my DB neat and tidy.

In this scenario, I am not able to use DB Session because every now and often the class tries to run its own junk collection and perform delete, which of course triggers an error.

Any quick thought about this issue?
Maybe someone encountered the same issue and came up with a quick solution?

Thank you!
Y.
#2

[eluser]jairoh_[/eluser]
good day sir. have u tried using
Code:
$this->session->sess_destroy();
#3

[eluser]yaniv[/eluser]
I may have not made my question clear enough.
Session destroy function will only delete the current session, either a cookie or db session.
My intention is to use a db session which I am not able to because the db session mechanism calls for delete privilege for the applications db user, which I do not grant.

In any case, I do appreciate your response!
Have a wonderful day.
Y




Theme © iAndrew 2016 - Forum software by © MyBB