Did Jesus ascend to Heaven twice? While studying the book of John I came to:


  Jesus saith unto her, Touch me not; for I am not yet ascended to my Father: but go to my brethren, and say unto them, I ascend unto my Father, and your Father; and to my God, and your God. (John 20:17, KJV)


Jesus would not allow Mary Magdalene to touch him after his resurrection until he had ascended to God the father, and in:


  Then saith he to Thomas, Reach hither thy finger, and behold my hands; and reach hither thy hand, and thrust it into my side: and be not faithless, but believing. (John 20:27, KJV)


Because he tells Thomas to stick his hand into his side, does it indicate that he had already ascended to God the father in Heaven?

Then in Luke we have the account of him ascending into Heaven as he was blessing the disciples.

Are there any other passages which might help answer my question?
The Gospels, Matthew and Luke, are based off of the gospel of Mark and the gospel of John is based independently on its own source.

The Savior said He was not to be touched until He has ascended to God. Perhaps He was to present Himself Resurrected to His Father. As far as we can tell by His conversation with the disciples versus His conversation with Mary, this had occurred by the time he was with the disciples.

Also, I believe it is implied in Acts that the Savior visited people after that ascension after Mary saw him. So yes, he had ascended before the time they saw His final ascension in the first chapter of Acts.

Edit:

Places where the Savior shows up after resurrection (not comprehensive):

Matthew 28:9-10 (held him by the feet),
Matthew 28:16-20,
Mark 16:12 =? Luke 24:13-33,
Mark 16:14 =? Luke 24:36-49 =? John 20:26-29,
John 20:19-23,
John 21,

Acts 1:3
Acts 7:55
Acts 9:5
Acts 9:10
Acts 9:27
Acts 10:40
Acts 13:31
Acts 18:9
Acts 22:18
Acts 23:11
Acts 26:16

1 Cor. 15:6