help please, redirect to main page (lava)

Started on the old forum in October 2012 · view the original in the archive · old links redirect here

7 replies · 575 views · started 14 years ago · 1 min read

6 participants
Reddax Newbie · 8 posts #1

please masters, h0w to redirect my members to main page? Same on facebook...

, i mean, if loged member leave my site, and a minute c0meback to my site inputting mysite.com on her/his br0wser and i want to redirect to mysite.com/index.php?do=main...

H0w to do it?

arnage Lead · 811 posts #2

For example... With storing password hash in _SESSION and _COOKIE and dealing with those superglobals how it suppose to. Post here what you have tried, otherwise topic will be deleted as there is no point explaining this to someone who doesn't have a clue what to do. Lower expectations and upper learning. We are here to help.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
hi_jakkk Developer · 52 posts #3

you need to stored cookies but that is n0t required for lava script i think..:)

arnage Lead · 811 posts #4

In Lavalair? 🙂

Plus, i'm sure that there is no question about Lavalair on which is not answered in past 5-6 years... It just need to fined here.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
Reddax Newbie · 8 posts #5

s0rry guys. I am only newbie...

arnage, maybe thats the p0int, st0ring passw0rd and hash sessi0n... H0w to d0 it? Help please....

ACIDCORE Junior · 30 posts #6

phpsession will do.check if it was set then do d redirect code..headr l0cati0n etc...try to search topics here related to hide sid method..then think for the rest of c0des..

PS: D0NT JUST COPYNPASTE,COZ U WILL BE NEWBIE FOR THE REST OF UR LYF

kruzada Junior · 20 posts #7

hmm..instead of Proceed or Enter links,put

header(location: index.php?do=main);

Edyka Junior · 11 posts #8

if(islogged($sid) && empty($action)) header("Location: index.php?action=main&sid=$sid"); something like this should do the work 🙂 but you'll need to add it to index.php just after the core is included 🙂

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close