Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need an introduction on Sessions

Participant ,
Sep 19, 2008 Sep 19, 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
TOPICS
Server side applications
435
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 20, 2008 Sep 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-...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 22, 2008 Sep 22, 2008
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 22, 2008 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 06, 2008 Oct 06, 2008
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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 16, 2008 Oct 16, 2008
Its too bad you're using PHP. Everything you asked about is built into
ASP.NET 2.0 and can literally be deployed using drag and drop --but-- that's
80%-90% of what needs to be really get done all the way so there's a bit of
coding that still has to be done but nothing near what it takes to code an
entire membership and authentication system using PHP.


"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?
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 16, 2008 Oct 16, 2008
LATEST
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?
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines