cookies - passing session to service objects -


i have case if resource disabled, of logged in users need logged out, use cookie store session , session.delete :user_id clear logged in sessions. trying use service object not have access session , i'm passing session object controller.

i'm wondering practice or there cleaner way?

if standard way how test service class, don't have access session object inside service test.

thanks in advance.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -