views:

55

answers:

1

Hello,

I am developing a Rails3 application and Devise for authentication. In the course of the workflow, I am storing information in the session, like patient_id. But, when the user log's out, I need to clear the session. I could've done it if I has control of user login and logout. But, now devise handles it.

How could I do it?

+1  A: 

I believe you'd have to over ride the devise controllers, there's a good post here on that:

Devise, CanCan and customizing devise controllers

Bill

related questions