Php pagination question and theory

Hello all

Hope your all well.

Hmm how to start.

I have the problem with pagination and the logic behind it.
Its not the code or the building of a pagination class but more the thinking behind the problem i have.

Ok say i have a page of clients. I have 7clients and only want to show 5 clients per page.
(eg: pagination on page: page1, page2 etc)

When you click on the client it takes you to the chosen clients page where it displays work for that client but only one at a time.
(eg: pagination on page: work1 work2 etc)

Now my problem is the pagination but returning to the list of clients and the page where that client was originally found.

So if the client was found on page 2 and i click on it we got to that clients page. But to return to the client list we return to page one instead of page 2.

I did think i could store the page in a session and use that to default the client page on returning.

I’m trying to make the site as SEO frindly as poss (clean urls) as well as bookmarkable without losing the bookmark when new work is added.

Does that make sense?