views:

31

answers:

0

1) I am using a middleware to log users ipaddress,but this should happen only once,and also only after user is authenticated.How can I do this?

2)In my application,I have login for users which is different from admin login.Now,when admin clicks logout,he is directed to users login page.But,I want to direct to admin login page.How can I do this?

thanks