INVO sample code. Remember last tab open in invoice link

Hello, new at forum

i want system remember witch tab was open by the user the last time he visit the invoice link, and mark as active this one.

is that possible?

Thanks in advance

You can have one more field in the database (say, last_opened_page) in the users table. Write a common function to update this field each time when the user visits a page. So last visited page of the user could be retrieved when the user logs in the next time.