on my site i have a login page where users can login the problem is

when a user log's in i set a sessions with the user id example

Session["UID"] = 10 or something

i check on every page if there is a sesion set

the problem is some times the sessions is broken and even though you are logged in it sends you back to the login page

can any one help me