Skip to main content
Inspiring
September 19, 2008
Question

Need an introduction on Sessions

  • September 19, 2008
  • 1 reply
  • 433 views
I'm making a site where people can search for an article on my site and it gets listed as normal, but if they want to view more information I want them to sign up.

If they are not signed in, the should be offered to sign up before they can see the content.

As I do not want anyone knowing my telephone number or email address.

Can someone show me the way?

Thanks in advance
This topic has been closed for replies.

1 reply

Inspiring
September 20, 2008
> I'm making a site where people can search for an article on my site and it
> gets
> listed as normal, but if they want to view more information I want them to
> sign
> up.
>
> If they are not signed in, the should be offered to sign up before they
> can
> see the content.
>
> As I do not want anyone knowing my telephone number or email address.
>
> Can someone show me the way?
>
> Thanks in advance



What you are asking for is fairly complicated, especially for a beginner.
Start here:
http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WScbb6b82af5544594822510a94ae8d65-7884.html

Inspiring
September 22, 2008
DW has USER AUTHENTICATION server behaviors built in, you know?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"The_FedEx_Guy" <webforumsuser@macromedia.com> wrote in message
news:gb7qkd$h9j$1@forums.macromedia.com...
> Hi Ted,
> Thanks for the link I'm having a look at it now. I can make a login page
> without any problems, its just varifying that the user is logged in when
> going to certain sections of the site.

Inspiring
October 16, 2008
Wait a minute, I forgot to mention PHP can now be used with the .NET
Framework so you should evaluate the option to use PHP.NET (as I think its
called). I've had to design and code all the database and server-side code
and all of the validation for Membership, Roles and Profiles before and I
know from experience this is one context that the .NET Framework is really
invaluable.


"The_FedEx_Guy" <webforumsuser@macromedia.com> wrote in message
news:gccvng$pi2$1@forums.macromedia.com...
>I have created the login page and it redirects to where I want, and I have
> successfully created sessions. But I have come up with another problem.
>
> What if I have hidding certain information from the visitor e.g contact
> telephone number? I only want the user to see it if they are logged in.
>
> I have got this so far:
>
> <?php if ($_SESSION['logged'] == "true") { echo ('<table border="0">
> <tr>
> <td valign="top">Contact:<?php echo
> $row_job_results["rest_contact"]; ?></td>
> <td valign="top">Contact Number: <?php
> echo
> $row_job_results["rest_conttel"]; ?></td>
> </tr>
> </table>');} else echo ('<table border="0">
> <tr>
> <td valign="top"><a
> href="login.php">Login
> to see this</a></td>
> <td valign="top"><a
> href="login.php">Login
> to see this</a></td>
> </tr>
> </table>');?>
>
> If the session tells the script the person is not logged in they can click
> on
> the link and login but once they are logged in they cannot go back to the
> same
> page, without redoing the search.
>
> Is there a way I can take them back to previous page once logged in?
>