question about header() security


Posted on 16th Feb 2014 07:03 pm by admin

is is safe to just use the header() function to redirect someone if they are, say, not logged in? or should i always put a die() function underneath the header() function?
No comments posted yet

Your Answer:

Login to answer
309 Like 6 Dislike
Previous forums Next forums
Other forums

PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see

Echoing a Variable from a Object
How do I get a variable from the new User Class to echo out in this clasS?

class MyApp
{

disabling a button server-side then re-enabling client-side breaks button postback
I have a tabbed container and a button (not in the container) on a page. If the first tab is selecte

does anyone know a php script to send mail using gmails/googles free smtp server
cause i heard u can do that but i dont know how

get multiple rows
Hi I want to get multiple rows from a db

I am using this for the db query
Code: public

Different actions for different parts of a string
<?php
function dosomething($string, $else = '') {
if (empty($else))
$string

bit of help needed
Im about to sort out my registration page for my website by customising a "registration" s

simple php table loop
Hi all,

I've the following code

<?php // Create category options

Log $_POST
How would i log submits on a form, by everyone? I want to then echo the number of submissions.

Cron Job and Output
I have php codes running under a cron job.
But everytime i output (echo) , it comes out as comple

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash