Linked Questions

22 votes
2 answers
90k views

I'm trying to correctly log out of an admin user. Here is my function: function logout() { $_SESSION = array(); //destroy all of the session variables if (ini_get("session.use_cookies")) { ...
Tony Stark's user avatar
  • 25.7k
5 votes
4 answers
7k views

Where should I store the ETag for a given resource? Approach A: compute on the fly Get the resource and compute the ETag on the fly upon each request: $resource = $repository->findByPK($id); // ...
gremo's user avatar
  • 48.9k
5 votes
3 answers
1k views

Like everyone else I'm storing my site`s display information in style sheet files. And I want to create back-end cms so users will be able to, for example, change < h1 > color, size etc. So, what'...
fomicz's user avatar
  • 1,822
5 votes
3 answers
4k views

I've been through over 100 answers here, lots to try, NOTHING working?? Have a PHP based site. I need caching OFF for all .php files EXCEPT A SELECT FEW. So, in .htaccess, I have the following: ...
Soyo's user avatar
  • 141
3 votes
1 answer
6k views

Ideally, to delete cookie in php, one should set exactly the same parameters when the cookie was created, except value and expire time: Creating cookie: setcookie('cookie1', 'value1', time()+10000, '...
Teimuraz's user avatar
  • 9,435
3 votes
1 answer
8k views

There is a lot of advice how to use headers to prevent the browser from caching a file. I wish to do the opposite. The cache.php file below never changes. I've tested this using FF, Chrome, and FF, ...
user1032531's user avatar
  • 26.5k
1 vote
2 answers
4k views

I am reading images from minimum of 1x1 pixel to maximum of 1600x1600 pixels. I have written three PHP methods and are working perfectly. // using FGC function output_fgc($filename) { header("...
Madan Sapkota's user avatar
1 vote
2 answers
2k views

I have noticed that files delivered by PHP through readfile or fpassthru techniques are never cached by the browser. How can I "encourage" browsers to cache items delivered via these methods?
Bart's user avatar
  • 6,814
1 vote
4 answers
181 views

I've been tasked to maintain a PHP website with a function which automatically generates RTF files and provides a link to download. Each time the previously generated file is overwritten by the new ...
Tom Savage's user avatar
  • 3,182
0 votes
6 answers
2k views

When I press the login button, it deletes the cookie redirects to the main page. It works perfectly. But when I press the "back" button (or backspace key), the logged in page still shows up. I want ...
webnat0's user avatar
  • 2,736
2 votes
2 answers
1k views

I have a website in which most of the content like the sidebar, the background etc. is similar across most of the pages in the sites. In ASP.NET, for such a case there are master pages. What's the ...
user1240679's user avatar
  • 6,997
0 votes
1 answer
2k views

I've recently started to use AngularJS on my projects and I've come across a big problem using ngRepeat to load thumbnails from a dynamic array into a DIV. Since I won't be explaining the entire ...
skywallkerd's user avatar
2 votes
2 answers
881 views

Is there a way to check if page/frame in Windows 8 application exists in cache? Let's assume I have two pages: Home and Clients (navigation cache enabled). When I navigate to clients from home (by ...
ignacy130's user avatar
  • 442
0 votes
1 answer
589 views

I have a page with keith-wood's datepicker, and jqplot graphs. Basically, the date picker 1 is set to todays date by default, and date picker 2 is set to a day before. If you select a date in ...
Shrinath's user avatar
  • 8,138
0 votes
1 answer
542 views

i'm wondering to generate cache pages of my website to avoid same queries again and again. there's almost 80% of queries fetching data that is almost not change able in near future (if cache system ...
RanaHaroon's user avatar

15 30 50 per page