"different webpages" verification

wxdqz

New Member
Dear all,

Using PHP, if we want to enter both login and password once before entering several webpages, which better way to write the verification webpage, using session or cookie ? Please give the ways in detail. When using cookie or session, do we do some configuration setting on the Apache server?

For example, I have tried to write cookie of one of the statements in the following,

setcookie("loginid",$loginid,time()+3600).

Such verification webpage is included in all my webpages that need verification. However, every webpage need login. Anyway, I want to login once and enter all the webpages, how to write the verification webpage correctly?


Sincerely yours,
Simon
 
Top