Hello everyone.

I have a page that echos success on a successful login, and I want it to then sleep(2); and then redirect to another page. Unfortunately and obviously, the headers are already sent if I'm in the body of the page. So, is there a way (with any language, javascript, mabe?) to redirect after the header information has already been sent? Thanks!

Recommended Answers

All 2 Replies

use a meta refresh.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.